I am not interested in the values in the arrays, how can I discard them?
$values = array(10=>"I","Don't","Care","About","Values");
$whatvalues = array_keys($values);
Here is the resultant output from this:
 => I
 => Don't
 => Care
 => About
 => Values
 => 10
 => 11
 => 12
 => 13
 => 14
We can see that the values have been discarded and we now have an array containing the keys as the values.
More arrays PHP QuestionsHow can I mix up the order of values in an array?
How do I generate an associative array like Jan => 10, Feb =>20 etc from a mysql table of 2 columns, month and val ?
I have an array of numbers and many repeat, how to list all items in order of maximum occurence?
How do I find the size of an array?
how a values entered in an array from keyboard?