|
@@ 1906-1914 (lines=9) @@
|
| 1903 |
|
* |
| 1904 |
|
* @return static (Mutable) Return this Arrayy object, with pushed elements to the end of array. |
| 1905 |
|
*/ |
| 1906 |
|
public function push(/* variadic arguments allowed */) |
| 1907 |
|
{ |
| 1908 |
|
if (func_num_args()) { |
| 1909 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1910 |
|
call_user_func_array('array_push', $args); |
| 1911 |
|
} |
| 1912 |
|
|
| 1913 |
|
return $this; |
| 1914 |
|
} |
| 1915 |
|
|
| 1916 |
|
/** |
| 1917 |
|
* Get a random value from the current array. |
|
@@ 2776-2784 (lines=9) @@
|
| 2773 |
|
* |
| 2774 |
|
* @return static (Mutable) Return this Arrayy object, with prepended elements to the beginning of array. |
| 2775 |
|
*/ |
| 2776 |
|
public function unshift(/* variadic arguments allowed */) |
| 2777 |
|
{ |
| 2778 |
|
if (func_num_args()) { |
| 2779 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2780 |
|
call_user_func_array('array_unshift', $args); |
| 2781 |
|
} |
| 2782 |
|
|
| 2783 |
|
return $this; |
| 2784 |
|
} |
| 2785 |
|
|
| 2786 |
|
/** |
| 2787 |
|
* Get all values from a array. |