// Declare array of numbers.
$list = array( 2, 8, 14, -1, 17, 99 );
// Sort items in ascending order.
sort( $list );
// Output the first (which is least) item.
// Note: if the array is empty, this will issue E_NOTICE.
echo 'The least number is ' . $list[ 0 ];
?>
Copyright © 2026 eLLeNow.com All Rights Reserved.