PHP/Math/min
Finding the Greatest and Least Values in an Array
<source lang="html4strict">
<?php
$prices = array(12.95, 24.5, 10.5, 5.95, 7.95);printf("
Highest price: \$%.2f; lowest price: \$%.2f.
\n",max($prices, min($prices));?>
</source>
<source lang="html4strict">
<?php
$prices = array(12.95, 24.5, 10.5, 5.95, 7.95);printf("
Highest price: \$%.2f; lowest price: \$%.2f.
\n",max($prices, min($prices));?>
</source>