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