@@ 2814-2822 (lines=9) @@ | ||
2811 | * |
|
2812 | * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
|
2813 | */ |
|
2814 | public function push(/* variadic arguments allowed */) |
|
2815 | { |
|
2816 | if (\func_num_args()) { |
|
2817 | $args = \array_merge([&$this->array], \func_get_args()); |
|
2818 | \array_push(...$args); |
|
2819 | } |
|
2820 | ||
2821 | return $this; |
|
2822 | } |
|
2823 | ||
2824 | /** |
|
2825 | * Get a random value from the current array. |
|
@@ 3798-3806 (lines=9) @@ | ||
3795 | * |
|
3796 | * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
|
3797 | */ |
|
3798 | public function unshift(/* variadic arguments allowed */) |
|
3799 | { |
|
3800 | if (\func_num_args()) { |
|
3801 | $args = \array_merge([&$this->array], \func_get_args()); |
|
3802 | \array_unshift(...$args); |
|
3803 | } |
|
3804 | ||
3805 | return $this; |
|
3806 | } |
|
3807 | ||
3808 | /** |
|
3809 | * Get all values from a array. |