|
@@ 1899-1907 (lines=9) @@
|
| 1896 |
|
* |
| 1897 |
|
* @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array. |
| 1898 |
|
*/ |
| 1899 |
|
public function push(/* variadic arguments allowed */) |
| 1900 |
|
{ |
| 1901 |
|
if (func_num_args()) { |
| 1902 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1903 |
|
call_user_func_array('array_push', $args); |
| 1904 |
|
} |
| 1905 |
|
|
| 1906 |
|
return $this; |
| 1907 |
|
} |
| 1908 |
|
|
| 1909 |
|
/** |
| 1910 |
|
* Get a random value from the current array. |
|
@@ 2757-2765 (lines=9) @@
|
| 2754 |
|
* |
| 2755 |
|
* @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array. |
| 2756 |
|
*/ |
| 2757 |
|
public function unshift(/* variadic arguments allowed */) |
| 2758 |
|
{ |
| 2759 |
|
if (func_num_args()) { |
| 2760 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2761 |
|
call_user_func_array('array_unshift', $args); |
| 2762 |
|
} |
| 2763 |
|
|
| 2764 |
|
return $this; |
| 2765 |
|
} |
| 2766 |
|
|
| 2767 |
|
/** |
| 2768 |
|
* Get all values from a array. |