Listen

$numbers = array(3, 1, 4, 1, 5, 9, 2, 6, 5, 3); // Sort in ascending order sort($numbers); print_r($numbers); // Sort in descending order rsort($numbers); print_r($numbers);

Listen

$numbers = array(3, 1, 4, 1, 5, 9, 2, 6, 5, 3); // Sort in ascending order sort($numbers); print_r($numbers); // Sort in descending order rsort($numbers); print_r($numbers);