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 a values entered in an array from keyboard?
How can I check if a value is already in an array?
How can I reset an array in PHP?
How to point internal pointer to first element of an array?
I want to invert my value in array how can I do this?