Lines Matching refs:input
2 Test array_flip() function : usage variations - 'input' argument with repeatitive keys and values
5 /* Prototype : array array_flip(array $input)
11 * Using different types of repeatitive keys as well as values for 'input' array
14 echo "*** Testing array_flip() : 'input' array with repeatitive keys/values ***\n";
17 $input = array(1 => 'value', 2 => 'VALUE', 1 => "VaLuE", 3.4 => 4, 3.4 => 5);
18 var_dump( array_flip($input) );
21 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR");
22 var_dump( array_flip($input) );
25 $input = array(true => 1, false => 0, TRUE => -1);
26 var_dump( array_flip($input) );
29 $input = array(null => "Hello", NULL => 0);
30 var_dump( array_flip($input) );
33 $input = array('one' => 1, 'two' => 2, 3 => 1, "index" => 1);
34 var_dump( array_flip($input) );
37 $input = array('key1' => "value1", "key2" => '2', 'key3' => 'value1');
38 var_dump( array_flip($input) );
43 *** Testing array_flip() : 'input' array with repeatitive keys/values ***