Lines Matching refs:array
2 Test sizeof() function : usage variations - different array values for 'var' argument
6 * Description: Counts an elements in an array. If Standard PHP library is installed,
17 echo "--- Testing sizeof() with different array values for 'var' argument ---\n";
19 // array containing different types of array values for 'var' argument
20 $values = array (
21 /* 1 */ array($fp, "resource" => $fp),
22 array(1, array(3, 4, array(6, array(8)))),
23 array("a" => 1, 'b' => 2, array( "c" =>3, array( "d" => 5))),
24 array(),
25 /* 5 */ array(1, 2, 3, 4),
26 array("Saffron", "White", "Green"),
27 array('saffron', 'white', 'green'),
28 array(1 => "Hi", 2 => "Hello" ),
29 array("color" => "red", "item" => "pen"),
30 /* 10 */ array('color' => 'red', 'item' => 'pen'),
31 array(TRUE => "red", FALSE => "pen" ),
32 array(false => 'red', true => 'pen' ),
33 array('color' => "red", "item" => 'pen', 1 => "Hi", "" => "Hello" ),
34 /* 14 */ array($fp, "resource1" => $fp, 'resource2' => $fp, array( $fp, 'type' => $fp) )
37 // loop through each element of the values array for 'var' argument
64 --- Testing sizeof() with different array values for 'var' argument ---