title: How to reverse level index of array using foreach in php?
body: <p>I'm using PHP on foreach function </p>
  
  <pre><code>$arr = array(array(1,2,3,4,5,6,7,8,9,10));
         foreach($arr as $item){
               var_dump($item);
         }
  </code></pre>
  
  <p>And here is my result </p>
  
  <pre><code>array (size=10)
    0 =&gt; int 1
    1 =&gt; int 2
    2 =&gt; int 3
    3 =&gt; int 4
    4 =&gt; int 5
    5 =&gt; int 6
    6 =&gt; int 7
    7 =&gt; int 8
    8 =&gt; int 9
    9 =&gt; int 10
  </code></pre>
  
  <p>But I want to revers from high to small back</p>
  
  <pre><code>array (size=10)
    0 =&gt; int 10
    1 =&gt; int 9
    2 =&gt; int 8
    3 =&gt; int 7
    4 =&gt; int 8
    5 =&gt; int 9
    6 =&gt; int 4
    7 =&gt; int 5
    8 =&gt; int 2
    9 =&gt; int 1
  </code></pre>
  
  <p>How can I do</p>