Return all the keys of an array with array array_keys (array input [, mixed search_value])
<? $array = array(0 => 100, "color" => "red"); array_keys ($array); $array = array(1, 100, 2, 100); array_keys ($array, 100); ?>