Let's say I have a table with these columns:
id name color
If I fetch a row from this table with mysql_fetch_array, i get these values:
0 => 1
id => 1
1 => Jack
name => Jack
2 => red
color => red
...double elements, as you can see.
Is there any quick 'n easy way to get rid of the enumerated elements, and just keep the ones with the associative keys?
Note: I can not simply unset every other element in the array, because if, for example, "name" was blank, this array would be returned:
0 => 1
id => 1
1 =>
2 => red
color => red
I tested that.