PHP Reverse the order of elements in an array – PHP April 16, 2011 Pramod T P Leave a comment <?php $testData= array('Test1', 'Test2', 'Test3'); print_r(array_reverse($testData)); //Array ( [0] => Test3 [1] => Test2 [2] => Test1 ) ?>