Advertisement
George_Leow

Min and Max

Oct 17th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. <?php
  2.  
  3. $numbers= array(170, 210, 103, 375, 315, 470, 255);
  4.  
  5. $smallest= min($numbers);
  6.  
  7. $largest= max($numbers);
  8.  
  9. echo $smallest;
  10. echo "<br>";
  11. echo $largest;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement