reverse the order of an array's elements
Posted: Sun Nov 16, 2008 2:16 pm
lets say that we have the following array :
and we want to reverse the order of the elements to be like this :
is there a direct function to do that ?
Code: Select all
$array=array('1','2','3','4','5');Code: Select all
$array=array('5','4','3','2','1');