title: How do I get the highest value when using loops?
body: <p>I want to get the highest value of my array.
  This are the two ways when I'm working with php functions.</p>
  
  <pre><code>
  $a = array(1,125,1068); 
  1.  $value = max($a);  
      print_r ($value);
  
  2.  asort($a);
      $value = end($a);
      print_r ($value);
  </code></pre>
  
  <p>I just couldn't figure out how to get the highest value when using loops.</p>