|
@@ 2620-2628 (lines=9) @@
|
| 2617 |
|
* |
| 2618 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2619 |
|
*/ |
| 2620 |
|
public function push(/* variadic arguments allowed */) |
| 2621 |
|
{ |
| 2622 |
|
if (\func_num_args()) { |
| 2623 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 2624 |
|
\array_push(...$args); |
| 2625 |
|
} |
| 2626 |
|
|
| 2627 |
|
return $this; |
| 2628 |
|
} |
| 2629 |
|
|
| 2630 |
|
/** |
| 2631 |
|
* Get a random value from the current array. |
|
@@ 3619-3627 (lines=9) @@
|
| 3616 |
|
* |
| 3617 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3618 |
|
*/ |
| 3619 |
|
public function unshift(/* variadic arguments allowed */) |
| 3620 |
|
{ |
| 3621 |
|
if (\func_num_args()) { |
| 3622 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 3623 |
|
\array_unshift(...$args); |
| 3624 |
|
} |
| 3625 |
|
|
| 3626 |
|
return $this; |
| 3627 |
|
} |
| 3628 |
|
|
| 3629 |
|
/** |
| 3630 |
|
* Get all values from a array. |