|
@@ 2119-2127 (lines=9) @@
|
| 2116 |
|
* |
| 2117 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2118 |
|
*/ |
| 2119 |
|
public function push(/* variadic arguments allowed */) |
| 2120 |
|
{ |
| 2121 |
|
if (func_num_args()) { |
| 2122 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 2123 |
|
call_user_func_array('array_push', $args); |
| 2124 |
|
} |
| 2125 |
|
|
| 2126 |
|
return $this; |
| 2127 |
|
} |
| 2128 |
|
|
| 2129 |
|
/** |
| 2130 |
|
* Get a random value from the current array. |
|
@@ 3006-3014 (lines=9) @@
|
| 3003 |
|
* |
| 3004 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3005 |
|
*/ |
| 3006 |
|
public function unshift(/* variadic arguments allowed */) |
| 3007 |
|
{ |
| 3008 |
|
if (func_num_args()) { |
| 3009 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 3010 |
|
call_user_func_array('array_unshift', $args); |
| 3011 |
|
} |
| 3012 |
|
|
| 3013 |
|
return $this; |
| 3014 |
|
} |
| 3015 |
|
|
| 3016 |
|
/** |
| 3017 |
|
* Get all values from a array. |