|
@@ 1925-1933 (lines=9) @@
|
| 1922 |
|
* |
| 1923 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 1924 |
|
*/ |
| 1925 |
|
public function push(/* variadic arguments allowed */) |
| 1926 |
|
{ |
| 1927 |
|
if (func_num_args()) { |
| 1928 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 1929 |
|
call_user_func_array('array_push', $args); |
| 1930 |
|
} |
| 1931 |
|
|
| 1932 |
|
return $this; |
| 1933 |
|
} |
| 1934 |
|
|
| 1935 |
|
/** |
| 1936 |
|
* Get a random value from the current array. |
|
@@ 2833-2841 (lines=9) @@
|
| 2830 |
|
* |
| 2831 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 2832 |
|
*/ |
| 2833 |
|
public function unshift(/* variadic arguments allowed */) |
| 2834 |
|
{ |
| 2835 |
|
if (func_num_args()) { |
| 2836 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 2837 |
|
call_user_func_array('array_unshift', $args); |
| 2838 |
|
} |
| 2839 |
|
|
| 2840 |
|
return $this; |
| 2841 |
|
} |
| 2842 |
|
|
| 2843 |
|
/** |
| 2844 |
|
* Get all values from a array. |