I\'ve Googled it for two days, and tried looking at the PHP manual, and I still can\'t remember that function that aligns the key values for PHP arrays.
All I\'m loo
Well, you see, this one is hard, because the general description on the PHP array functions page does not say that this function does what you're looking for.
But you can sort the array using ksort()
, and then use this: array_values()
. From the page from the PHP manual:
array_values()
returns all the values from the input array and indexes numerically the array.