Paste Search Dynamic
array_reverse
  1. <?php
  2.  
  3. $x= array(1,2,3,4,5);
  4. $y = array_reverse($x);
  5. echo "Original";
  6. print_r($x);
  7. echo '</br> ';
  8. echo "Printing the reversed";
  9. print_r($y);
  10.  
  11. ?>
Parsed in 0.009 seconds