Cory Norris
New member
Eg I have an array where
$arr = array ( "a" => "orange",
"b" => "banana",
"c" => "apple" )
how can I get the 'a','b','c' out of the array? I want the actual association titles, not the data they are associated with.
Thanks
anyone who doesn't have a useless answer?
I want to build drop down boxes from a PDO mysql query, which, returns an associative array. I would like to thus lookup the associations so that I would not have to later modify the associations for a different drop down box.
$arr = array ( "a" => "orange",
"b" => "banana",
"c" => "apple" )
how can I get the 'a','b','c' out of the array? I want the actual association titles, not the data they are associated with.
Thanks
anyone who doesn't have a useless answer?
I want to build drop down boxes from a PDO mysql query, which, returns an associative array. I would like to thus lookup the associations so that I would not have to later modify the associations for a different drop down box.