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 create an array of numbers easily?
how sorting an array with keys?
I have the following list : Tom T1 Tom T2 Bill T1 Bill T2 Jack T1 Jack T2 I need it converted into : Tom T1,T2 Bill T1,T2 Jack T1,T2
How do I remove an element from an array without changing the index values for the rest of the array?
How do we sort an array of names taken from a text file, displaying only unique names?