|
@@ 1590-1598 (lines=9) @@
|
| 1587 |
|
* |
| 1588 |
|
* @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array. |
| 1589 |
|
*/ |
| 1590 |
|
public function push(/* variadic arguments allowed */) |
| 1591 |
|
{ |
| 1592 |
|
if (func_num_args()) { |
| 1593 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1594 |
|
call_user_func_array('array_push', $args); |
| 1595 |
|
} |
| 1596 |
|
|
| 1597 |
|
return $this; |
| 1598 |
|
} |
| 1599 |
|
|
| 1600 |
|
/** |
| 1601 |
|
* Get a random value from the current array. |
|
@@ 2364-2372 (lines=9) @@
|
| 2361 |
|
* |
| 2362 |
|
* @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array. |
| 2363 |
|
*/ |
| 2364 |
|
public function unshift(/* variadic arguments allowed */) |
| 2365 |
|
{ |
| 2366 |
|
if (func_num_args()) { |
| 2367 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2368 |
|
call_user_func_array('array_unshift', $args); |
| 2369 |
|
} |
| 2370 |
|
|
| 2371 |
|
return $this; |
| 2372 |
|
} |
| 2373 |
|
|
| 2374 |
|
/** |
| 2375 |
|
* Get all values from a array. |