@@ 2942-2950 (lines=9) @@ | ||
2939 | * |
|
2940 | * @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
|
2941 | */ |
|
2942 | public function push(/* variadic arguments allowed */) |
|
2943 | { |
|
2944 | if (\func_num_args()) { |
|
2945 | $args = \array_merge([&$this->array], \func_get_args()); |
|
2946 | \array_push(...$args); |
|
2947 | } |
|
2948 | ||
2949 | return $this; |
|
2950 | } |
|
2951 | ||
2952 | /** |
|
2953 | * Get a random value from the current array. |
|
@@ 3942-3950 (lines=9) @@ | ||
3939 | * |
|
3940 | * @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
|
3941 | */ |
|
3942 | public function unshift(/* variadic arguments allowed */) |
|
3943 | { |
|
3944 | if (\func_num_args()) { |
|
3945 | $args = \array_merge([&$this->array], \func_get_args()); |
|
3946 | \array_unshift(...$args); |
|
3947 | } |
|
3948 | ||
3949 | return $this; |
|
3950 | } |
|
3951 | ||
3952 | /** |
|
3953 | * Get all values from a array. |