|
@@ 1938-1946 (lines=9) @@
|
| 1935 |
|
* |
| 1936 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 1937 |
|
*/ |
| 1938 |
|
public function push(/* variadic arguments allowed */) |
| 1939 |
|
{ |
| 1940 |
|
if (func_num_args()) { |
| 1941 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 1942 |
|
call_user_func_array('array_push', $args); |
| 1943 |
|
} |
| 1944 |
|
|
| 1945 |
|
return $this; |
| 1946 |
|
} |
| 1947 |
|
|
| 1948 |
|
/** |
| 1949 |
|
* Get a random value from the current array. |
|
@@ 2846-2854 (lines=9) @@
|
| 2843 |
|
* |
| 2844 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 2845 |
|
*/ |
| 2846 |
|
public function unshift(/* variadic arguments allowed */) |
| 2847 |
|
{ |
| 2848 |
|
if (func_num_args()) { |
| 2849 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 2850 |
|
call_user_func_array('array_unshift', $args); |
| 2851 |
|
} |
| 2852 |
|
|
| 2853 |
|
return $this; |
| 2854 |
|
} |
| 2855 |
|
|
| 2856 |
|
/** |
| 2857 |
|
* Get all values from a array. |