|
@@ 1908-1916 (lines=9) @@
|
| 1905 |
|
* |
| 1906 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 1907 |
|
*/ |
| 1908 |
|
public function push(/* variadic arguments allowed */) |
| 1909 |
|
{ |
| 1910 |
|
if (func_num_args()) { |
| 1911 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1912 |
|
call_user_func_array('array_push', $args); |
| 1913 |
|
} |
| 1914 |
|
|
| 1915 |
|
return $this; |
| 1916 |
|
} |
| 1917 |
|
|
| 1918 |
|
/** |
| 1919 |
|
* Get a random value from the current array. |
|
@@ 2816-2824 (lines=9) @@
|
| 2813 |
|
* |
| 2814 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 2815 |
|
*/ |
| 2816 |
|
public function unshift(/* variadic arguments allowed */) |
| 2817 |
|
{ |
| 2818 |
|
if (func_num_args()) { |
| 2819 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2820 |
|
call_user_func_array('array_unshift', $args); |
| 2821 |
|
} |
| 2822 |
|
|
| 2823 |
|
return $this; |
| 2824 |
|
} |
| 2825 |
|
|
| 2826 |
|
/** |
| 2827 |
|
* Get all values from a array. |