answersLogoWhite

0


// 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 ];

?>

User Avatar

Wiki User

15y ago

What else can I help you with?