|
@@ 2260-2268 (lines=9) @@
|
| 2257 |
|
* |
| 2258 |
|
* @return static <p>(Mutable) Return this Arrayy object, with pushed elements to the end of array.</p> |
| 2259 |
|
*/ |
| 2260 |
|
public function push(/* variadic arguments allowed */) |
| 2261 |
|
{ |
| 2262 |
|
if (func_num_args()) { |
| 2263 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 2264 |
|
call_user_func_array('array_push', $args); |
| 2265 |
|
} |
| 2266 |
|
|
| 2267 |
|
return $this; |
| 2268 |
|
} |
| 2269 |
|
|
| 2270 |
|
/** |
| 2271 |
|
* Get a random value from the current array. |
|
@@ 3174-3182 (lines=9) @@
|
| 3171 |
|
* |
| 3172 |
|
* @return static <p>(Mutable) Return this Arrayy object, with prepended elements to the beginning of array.</p> |
| 3173 |
|
*/ |
| 3174 |
|
public function unshift(/* variadic arguments allowed */) |
| 3175 |
|
{ |
| 3176 |
|
if (func_num_args()) { |
| 3177 |
|
$args = \array_merge(array(&$this->array), func_get_args()); |
| 3178 |
|
call_user_func_array('array_unshift', $args); |
| 3179 |
|
} |
| 3180 |
|
|
| 3181 |
|
return $this; |
| 3182 |
|
} |
| 3183 |
|
|
| 3184 |
|
/** |
| 3185 |
|
* Get all values from a array. |