Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php keys of array

$array = array(0 => 100, "cor" => "vermelho");
print_r(array_keys($array));

$array = array("azul", "vermelho", "verde", "azul", "azul");
print_r(array_keys($array, "azul"));

$array = array("cor"     => array("azul", "vermelho", "verde"),
               "tamanho" => array("pequeno", "medio", "grande"));
print_r(array_keys($array));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #keys #array
ADD COMMENT
Topic
Name
6+3 =