|
@@ 3044-3052 (lines=9) @@
|
| 3041 |
|
* @return static |
| 3042 |
|
* <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 3043 |
|
*/ |
| 3044 |
|
public function push(/* variadic arguments allowed */) |
| 3045 |
|
{ |
| 3046 |
|
if (\func_num_args()) { |
| 3047 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 3048 |
|
\array_push(...$args); |
| 3049 |
|
} |
| 3050 |
|
|
| 3051 |
|
return $this; |
| 3052 |
|
} |
| 3053 |
|
|
| 3054 |
|
/** |
| 3055 |
|
* Get a random value from the current array. |
|
@@ 4095-4103 (lines=9) @@
|
| 4092 |
|
* @return static |
| 4093 |
|
* <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 4094 |
|
*/ |
| 4095 |
|
public function unshift(/* variadic arguments allowed */) |
| 4096 |
|
{ |
| 4097 |
|
if (\func_num_args()) { |
| 4098 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 4099 |
|
\array_unshift(...$args); |
| 4100 |
|
} |
| 4101 |
|
|
| 4102 |
|
return $this; |
| 4103 |
|
} |
| 4104 |
|
|
| 4105 |
|
/** |
| 4106 |
|
* Get all values from a array. |