Lines Matching refs:keys
5 /* Prototype : array array_combine(array $keys, array $values)
6 * Description: Creates an array by using the elements of the first parameter as keys
12 * Passing different types of arrays to both $keys and $values arguments and testing whether
16 echo "*** Testing array_combine() : Passing different types of arrays to both \$keys and \$values a…
47 // arrays passed to $keys argument
49 /*1*/ array(1, 2), // with default keys and numeric values
50 array(1.1, 2.2), // with default keys & float values
51 array(false,true), // with default keys and boolean values
59 /*9*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values
60 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values
61 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values
72 // array with repetative keys
77 // same arrays are passed to both $keys and $values
88 *** Testing array_combine() : Passing different types of arrays to both $keys and $values argument …