Lines Matching refs:array

5 /* Prototype  : bool shuffle(array $array_arg)
6 * Description: Randomly shuffle the contents of an array
7 * Source code: ext/standard/array.c
18 $array_arg = array(
19 // array with positive int values
20 /*1*/ array("zero" => 0, 1 => 1, "two" => 2, "max_int" => 2147483647 ),
22 // array with negative int values
23 array("minus_one" => -1, 'minus_two' => -2, "min_int" => -2147483647 ),
25 // array with positive float values
26 /*3*/ array("float1" => 0.23, 'float2' => 1.34, "exp1" => 0e2, 'exp2' => 200e-2, "exp3" => 10e0),
28 // array with negative float values
29 array(-0.23 => -0.23, -1.34 => -1.34, -200e-2 => -200e-2, -30 => -30e0, -2147473649.80),
31 // array with single and double quoted strings
32 /*5*/ array('1' => 'one', "str1" => "123numbers", '' => 'hello\tworld', "" => "hello world\0", "12…
34 // array with bool values
35 array('1' => TRUE, "1" => TRUE, "0" => FALSE, '0' => FALSE),
37 // array with positive hexa values
38 /*7*/ array("hex1" => 0x123, 'hex2' => 0xabc, "hex\t3" => 0xABC, "hex\04" => 0xAb1),
40 // array with negative hexa values
41 array(NULL => -0x123, "NULL" => -0xabc, "-ABC" => -0xABC, -0xAB1 => -0xAb1),
43 // array with positive octal values
44 /*9*/ array(0123 => 0123, "02348" => 02348, '034' => 034, 00 => 00),
46 // array with negative octal values
47 array(-0123 => -0123, "-02348" => -02348, '-034' => -034),
49 // array with null values
50 /*11*/ array(NULL => NULL, "null" => NULL, "NULL" => NULL)
54 // looping to test shuffle() with each sub-array in the $array_arg array
60 echo "\nThe output array is:\n";
75 The output array is:
76 array(4) {
90 The output array is:
91 array(3) {
103 The output array is:
104 array(5) {
120 The output array is:
121 array(5) {
137 The output array is:
138 array(4) {
152 The output array is:
153 array(2) {
163 The output array is:
164 array(4) {
178 The output array is:
179 array(4) {
193 The output array is:
194 array(4) {
208 The output array is:
209 array(3) {
221 The output array is:
222 array(3) {