|
@@ 2746-2754 (lines=9) @@
|
| 2743 |
|
* |
| 2744 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2745 |
|
*/ |
| 2746 |
|
public function push(/* variadic arguments allowed */) |
| 2747 |
|
{ |
| 2748 |
|
if (\func_num_args()) { |
| 2749 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 2750 |
|
\array_push(...$args); |
| 2751 |
|
} |
| 2752 |
|
|
| 2753 |
|
return $this; |
| 2754 |
|
} |
| 2755 |
|
|
| 2756 |
|
/** |
| 2757 |
|
* Get a random value from the current array. |
|
@@ 3730-3738 (lines=9) @@
|
| 3727 |
|
* |
| 3728 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3729 |
|
*/ |
| 3730 |
|
public function unshift(/* variadic arguments allowed */) |
| 3731 |
|
{ |
| 3732 |
|
if (\func_num_args()) { |
| 3733 |
|
$args = \array_merge([&$this->array], \func_get_args()); |
| 3734 |
|
\array_unshift(...$args); |
| 3735 |
|
} |
| 3736 |
|
|
| 3737 |
|
return $this; |
| 3738 |
|
} |
| 3739 |
|
|
| 3740 |
|
/** |
| 3741 |
|
* Get all values from a array. |