I have tried something like that but it's giving me value. I need all the elements reverse in array again.
 <?php
//There is an array 
  echo '<pre>';
  $arr = ['a','b','c','d','e','f'];
  print_r($arr);
  $size = sizeof($arr);
 //print_r($size);
 for($i=5; $i<=$size; $i--)
 {
  echo $arr[$i];
 }
?>
but it gives me output "fedcba"
     I need like this ["f", "e", "d", "c", "b", "a"]
     reverse all of its elements without using any PHP array function and any other new variable.
 
     
     
     
     
     
     
    