Read an array in reverse
Posted: Tue Oct 25, 2005 6:21 pm
What is the best way to read an array in reverse (as apposed to just foreach(This as that) {bla})
I need to do a news post administration thinger and the news needs to come up in the reverse order it went in... I will pull it out of a database in an array, but I want to read that array from the end instead of the beginning.
NEVERMIND... I found it
I'm an idiot... array_reverse()
I need to do a news post administration thinger and the news needs to come up in the reverse order it went in... I will pull it out of a database in an array, but I want to read that array from the end instead of the beginning.
NEVERMIND... I found it
I'm an idiot... array_reverse()