|
@@ 1478-1486 (lines=9) @@
|
| 1475 |
|
* |
| 1476 |
|
* @return $this Return this Arrayy object, with pushed elements to the end of array. |
| 1477 |
|
*/ |
| 1478 |
|
public function push(/* variadic arguments allowed */) |
| 1479 |
|
{ |
| 1480 |
|
if (func_num_args()) { |
| 1481 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1482 |
|
call_user_func_array('array_push', $args); |
| 1483 |
|
} |
| 1484 |
|
|
| 1485 |
|
return $this; |
| 1486 |
|
} |
| 1487 |
|
|
| 1488 |
|
/** |
| 1489 |
|
* Get a random value from the current array. |
|
@@ 2214-2222 (lines=9) @@
|
| 2211 |
|
* |
| 2212 |
|
* @return $this Return this Arrayy object, with prepended elements to the beginning of array. |
| 2213 |
|
*/ |
| 2214 |
|
public function unshift(/* variadic arguments allowed */) |
| 2215 |
|
{ |
| 2216 |
|
if (func_num_args()) { |
| 2217 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2218 |
|
call_user_func_array('array_unshift', $args); |
| 2219 |
|
} |
| 2220 |
|
|
| 2221 |
|
return $this; |
| 2222 |
|
} |
| 2223 |
|
|
| 2224 |
|
/** |
| 2225 |
|
* Get all values from a array. |