|
@@ 2740-2748 (lines=9) @@
|
| 2737 |
|
* |
| 2738 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2739 |
|
*/ |
| 2740 |
|
public function push(/* variadic arguments allowed */) |
| 2741 |
|
{ |
| 2742 |
|
if (\func_num_args()) { |
| 2743 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 2744 |
|
\array_push(...$args); |
| 2745 |
|
} |
| 2746 |
|
|
| 2747 |
|
return $this; |
| 2748 |
|
} |
| 2749 |
|
|
| 2750 |
|
/** |
| 2751 |
|
* Get a random value from the current array. |
|
@@ 3724-3732 (lines=9) @@
|
| 3721 |
|
* |
| 3722 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3723 |
|
*/ |
| 3724 |
|
public function unshift(/* variadic arguments allowed */) |
| 3725 |
|
{ |
| 3726 |
|
if (\func_num_args()) { |
| 3727 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 3728 |
|
\array_unshift(...$args); |
| 3729 |
|
} |
| 3730 |
|
|
| 3731 |
|
return $this; |
| 3732 |
|
} |
| 3733 |
|
|
| 3734 |
|
/** |
| 3735 |
|
* Get all values from a array. |