title: How do I display the data from the last to the first with a multidimensional array in php
body: <p>So I'm new to coding and I was looking at arrays and I want to know if it's possible to display the last piece of data from an array first and the first piece of data to be last. This is the code I have.</p>
  
  <pre><code>&lt;?php
  
  $trans = array
      (
          array("10/3/22",1,54),
          array("10/48/32", 54,54),
          array("3/29/2018", 54, 128.84)
      );
  
  echo '&lt;table border="1"&gt;';
  echo '&lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;Before Balance&lt;/th&gt;&lt;th&gt;After Balance&lt;/th&gt;&lt;/tr&gt;';
  foreach ($trans as $tran) {
      echo '&lt;tr&gt;';
      foreach( $tran as $data ) {
          echo '&lt;td&gt;' . $data . '&lt;/td&gt;';
      }
      echo '&lt;/tr&gt;';
  }
  echo '&lt;/table&gt;';
  </code></pre>