diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-10-30 19:05:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-10-30 19:09:51 +0900 |
| commit | b7388cdc04ee6385fea7cd5e6e2fdc57b1845624 (patch) | |
| tree | 60f9e166542592017d9ef1ddb7d79f24832f78fc /src/a.php | |
| parent | 9fbc7168397ff77c015e34c863d4631335132d38 (diff) | |
| download | phpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.tar.gz phpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.tar.zst phpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.zip | |
Diffstat (limited to 'src/a.php')
| -rw-r--r-- | src/a.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/a.php b/src/a.php new file mode 100644 index 0000000..1003341 --- /dev/null +++ b/src/a.php @@ -0,0 +1,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"; +} |
