PHP Fetch previous element of an array – PHP May 11, 2011 Pramod T P Leave a comment <?php $testArray = array('foot', 'bike', 'car', 'plane'); next($testArray); next($testArray); echo prev($testArray); // bike ?>