title: How to show each value separately from Array in descending order?
body: <p>Want to show values separately from an array by writing &quot;Echo&quot;. Also for each &quot;Echo&quot; code, the values must go in descending order.<br/><br/>
  <strong>Here is the Code for Descending values:</strong></p>
  <pre><code>&lt;?php
  $toplist = array(10, 15, 20, 13, 18, 21, 25);
  
  rsort($toplist);
  
  $length = count($toplist);
  for($x = 0; $x &lt; $length; $x++) {
      echo $toplist[$x];
      echo &quot;&lt;br&gt;&quot;;
  }
  ?&gt;
  </code></pre>
  <p><strong>And the Output appears together like this:</strong> <br/></p>
  <pre><code>25
  21
  20
  18
  15
  13
  10
  </code></pre>
  <br/>
  But I want all values separately in descending order by writing each "Echo" code.<br/><br/>
  <p><strong>For exaples:</strong><br/></p>
  <pre><code>   echo $toplist[$x1];
  </code></pre>
  <p>output: 25</p>
  <pre><code>   echo $toplist[$x2];
  </code></pre>
  <p>output: 21</p>
  <pre><code>   echo $toplist[$x3];
  </code></pre>
  <p>output: 20</p>
  <pre><code>etc. etc...
  </code></pre>