|
@@ 1552-1560 (lines=9) @@
|
| 1549 |
|
* |
| 1550 |
|
* @return self (Mutable) Return this Arrayy object, with pushed elements to the end of array. |
| 1551 |
|
*/ |
| 1552 |
|
public function push(/* variadic arguments allowed */) |
| 1553 |
|
{ |
| 1554 |
|
if (func_num_args()) { |
| 1555 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 1556 |
|
call_user_func_array('array_push', $args); |
| 1557 |
|
} |
| 1558 |
|
|
| 1559 |
|
return $this; |
| 1560 |
|
} |
| 1561 |
|
|
| 1562 |
|
/** |
| 1563 |
|
* Get a random value from the current array. |
|
@@ 2326-2334 (lines=9) @@
|
| 2323 |
|
* |
| 2324 |
|
* @return self (Mutable) Return this Arrayy object, with prepended elements to the beginning of array. |
| 2325 |
|
*/ |
| 2326 |
|
public function unshift(/* variadic arguments allowed */) |
| 2327 |
|
{ |
| 2328 |
|
if (func_num_args()) { |
| 2329 |
|
$args = array_merge(array(&$this->array), func_get_args()); |
| 2330 |
|
call_user_func_array('array_unshift', $args); |
| 2331 |
|
} |
| 2332 |
|
|
| 2333 |
|
return $this; |
| 2334 |
|
} |
| 2335 |
|
|
| 2336 |
|
/** |
| 2337 |
|
* Get all values from a array. |