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