|
@@ 2918-2926 (lines=9) @@
|
| 2915 |
|
* |
| 2916 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2917 |
|
*/ |
| 2918 |
|
public function push(/* variadic arguments allowed */) |
| 2919 |
|
{ |
| 2920 |
|
if (\func_num_args()) { |
| 2921 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 2922 |
|
\array_push(...$args); |
| 2923 |
|
} |
| 2924 |
|
|
| 2925 |
|
return $this; |
| 2926 |
|
} |
| 2927 |
|
|
| 2928 |
|
/** |
| 2929 |
|
* Get a random value from the current array. |
|
@@ 3917-3925 (lines=9) @@
|
| 3914 |
|
* |
| 3915 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3916 |
|
*/ |
| 3917 |
|
public function unshift(/* variadic arguments allowed */) |
| 3918 |
|
{ |
| 3919 |
|
if (\func_num_args()) { |
| 3920 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 3921 |
|
\array_unshift(...$args); |
| 3922 |
|
} |
| 3923 |
|
|
| 3924 |
|
return $this; |
| 3925 |
|
} |
| 3926 |
|
|
| 3927 |
|
/** |
| 3928 |
|
* Get all values from a array. |