|
@@ 1525-1533 (lines=9) @@
|
| 1522 |
|
* |
| 1523 |
|
* @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array. |
| 1524 |
|
*/ |
| 1525 |
|
public function push(/* variadic arguments allowed */) |
| 1526 |
|
{ |
| 1527 |
|
if (func_num_args()) { |
| 1528 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1529 |
|
call_user_func_array('array_push', $args); |
| 1530 |
|
} |
| 1531 |
|
|
| 1532 |
|
return $this; |
| 1533 |
|
} |
| 1534 |
|
|
| 1535 |
|
/** |
| 1536 |
|
* Get a random value from the current array. |
|
@@ 2293-2301 (lines=9) @@
|
| 2290 |
|
* |
| 2291 |
|
* @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array. |
| 2292 |
|
*/ |
| 2293 |
|
public function unshift(/* variadic arguments allowed */) |
| 2294 |
|
{ |
| 2295 |
|
if (func_num_args()) { |
| 2296 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2297 |
|
call_user_func_array('array_unshift', $args); |
| 2298 |
|
} |
| 2299 |
|
|
| 2300 |
|
return $this; |
| 2301 |
|
} |
| 2302 |
|
|
| 2303 |
|
/** |
| 2304 |
|
* Get all values from a array. |