@@ 2866-2874 (lines=9) @@ | ||
2863 | * |
|
2864 | * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
|
2865 | */ |
|
2866 | public function push(/* variadic arguments allowed */) |
|
2867 | { |
|
2868 | if (\func_num_args()) { |
|
2869 | $args = \array_merge([&$this->array], \func_get_args()); |
|
2870 | \array_push(...$args); |
|
2871 | } |
|
2872 | ||
2873 | return $this; |
|
2874 | } |
|
2875 | ||
2876 | /** |
|
2877 | * Get a random value from the current array. |
|
@@ 3851-3859 (lines=9) @@ | ||
3848 | * |
|
3849 | * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
|
3850 | */ |
|
3851 | public function unshift(/* variadic arguments allowed */) |
|
3852 | { |
|
3853 | if (\func_num_args()) { |
|
3854 | $args = \array_merge([&$this->array], \func_get_args()); |
|
3855 | \array_unshift(...$args); |
|
3856 | } |
|
3857 | ||
3858 | return $this; |
|
3859 | } |
|
3860 | ||
3861 | /** |
|
3862 | * Get all values from a array. |