greenheart Posted October 18, 2009 Share Posted October 18, 2009 Hello I have an array of data. How do I reverse the order of the elements? So if Array[0]= test, Array[1]=new, Array[2]=done how do I reverse the elements so that Array[0]=done, Array[2]=test etc. The arrays in question are large and full of parsed data that changes. Link to comment https://forums.phpfreaks.com/topic/178121-solved-reversing-the-entries-in-an-array/ Share on other sites More sharing options...
Mark Baker Posted October 18, 2009 Share Posted October 18, 2009 would you believe the array_reverse() function? Link to comment https://forums.phpfreaks.com/topic/178121-solved-reversing-the-entries-in-an-array/#findComment-939147 Share on other sites More sharing options...
greenheart Posted October 18, 2009 Author Share Posted October 18, 2009 Thanks just what I was looking for. Link to comment https://forums.phpfreaks.com/topic/178121-solved-reversing-the-entries-in-an-array/#findComment-939157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.