aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/a.php
blob: 100334151e09fa489d49f3ff4953e355f6c81cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
for ($i = 1; $i <= 100; $i++) {
    if ($i % 15 === 0) {
        echo "FizzBuzz";
    } elseif ($i % 3 === 0) {
        echo "Fizz";
    } elseif ($i % 5 === 0) {
        echo "Buzz";
    } else {
        echo $i;
    }
    echo "\n";
}