<!DOCTYPE html>
<html>
<head>
	<title>Opdracht 4</title>
</head>
<body>
<?php 
// Function that takes a numbers Array and prints it
function printNumbers($numbers)
{
    // Create a string from the numbers in the array
    $numbers_string = implode(", ", $numbers);
    echo "<p> Nummers: {$numbers_string} </p>";
}
$numbers_to_sort = [1337, 42, 69, 9, 11, 25091999, 420, 10, 8, 64];
printNumbers($numbers_to_sort);
rsort($numbers_to_sort);
printNumbers($numbers_to_sort);
?>

</body>
</html>
Example #2
0
            echo 9 . ' ';
        case 10:
            echo 10 . ' ';
        case 11:
            echo 11 . ' ';
        case 12:
            echo 12 . ' ';
        case 13:
            echo 13 . ' ';
        case 14:
            echo 14 . ' ';
        case 15:
            echo 15 . ' ';
    }
}
printNumbers($d);
?>
<br><?php 
/*
 * 3. Реализуйте основные 4 арифметические операции (+, -, *, %) в виде функций с
двумя параметрами. Обязательно используйте оператор return.
 * */
function add($a, $b)
{
    return $a + $b;
}
function subtr($a, $b)
{
    return $a - $b;
}
function mult($a, $b)