|
@@ 2463-2471 (lines=9) @@
|
| 2460 |
|
* |
| 2461 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2462 |
|
*/ |
| 2463 |
|
public function push(/* variadic arguments allowed */) |
| 2464 |
|
{ |
| 2465 |
|
if (func_num_args()) { |
| 2466 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 2467 |
|
call_user_func_array('array_push', $args); |
| 2468 |
|
} |
| 2469 |
|
|
| 2470 |
|
return $this; |
| 2471 |
|
} |
| 2472 |
|
|
| 2473 |
|
/** |
| 2474 |
|
* Get a random value from the current array. |
|
@@ 3395-3403 (lines=9) @@
|
| 3392 |
|
* |
| 3393 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3394 |
|
*/ |
| 3395 |
|
public function unshift(/* variadic arguments allowed */) |
| 3396 |
|
{ |
| 3397 |
|
if (func_num_args()) { |
| 3398 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 3399 |
|
call_user_func_array('array_unshift', $args); |
| 3400 |
|
} |
| 3401 |
|
|
| 3402 |
|
return $this; |
| 3403 |
|
} |
| 3404 |
|
|
| 3405 |
|
/** |
| 3406 |
|
* Get all values from a array. |