Lines Matching refs:array
5 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...])
6 * Description: Pushes elements onto the end of the array
7 * Source code: ext/standard/array.c
12 * 1. an array as $var arg
13 * 2. as sub-array as $stack arg
18 echo "\n-- Pass array as \$var argument --\n";
19 $array = array(1, 2, 3);
20 $sub_array = array('one', 'two');
21 var_dump(array_push($array, $sub_array));
22 var_dump($array);
24 echo "\n-- Pass sub-array as \$stack argument --\n";
25 var_dump(array_push($array[3], 'a'));
26 var_dump($array);
33 -- Pass array as $var argument --
35 array(4) {
43 array(2) {
51 -- Pass sub-array as $stack argument --
53 array(4) {
61 array(3) {