So I have multiple arrays in the following format:
Array (
[1283990400] => info
[1285804800] => info
[1286409600] => info
)
you can see the output here: http://beta.revival.tv/test/
I am trying to sort all the arrays together by date. I have stored the timestamp in the key of the array, but I am unsure of how to use the uasort function to accomplish what I want.
From what I have read this is the function I should be using. I have read countless articles explaining it for really simple arrays, but I don’t understand how I can apply it here.
I have already tried ksort with no luck because I am trying to sort all the arrays as a whole, not individually.
I also have already read the following post here giving me the idea to use uasort: Possible to sort complex PHP for loop
You’re looking for
ksort.Documentation.