Lines Matching refs:input
2 Test array_walk() function : usage variations - 'input' argument as diff. associative arrays
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
11 * Passing 'input' argument as an associative array
15 echo "*** Testing array_walk() : 'input' as an associative array ***\n";
26 // dump the input values to see if they are
35 * Parameters : $value - values in given input array
36 * $key - keys in given input array
41 // dump the input values to see if they are
49 * Parameters : $value - values in given input array
50 * $key - keys in given input array
55 // dump the input values to see if they are
63 $input = array( 1 => 25, 5 => 12, 0 => -80, -2 => 100, 5 => 30);
65 var_dump( array_walk($input, "for_numeric", 10));
68 $input = array( "a" => "Apple", 'b' => 'Bananna', "c" => "carrot", 'o' => "Orange");
70 var_dump( array_walk($input, "for_string"));
73 $input = array( b"a" => "Apple", b"b" => "Banana");
75 var_dump( array_walk($input, "for_string"));
78 $input = array( 0 => 1, 1 => 2, "a" => "Apple", "b" => "Banana", 2 =>3);
80 var_dump( array_walk($input, "for_mixed"));
85 *** Testing array_walk() : 'input' as an associative array ***