aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/a.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-10-30 19:05:32 +0900
committernsfisis <nsfisis@gmail.com>2024-10-30 19:09:51 +0900
commitb7388cdc04ee6385fea7cd5e6e2fdc57b1845624 (patch)
tree60f9e166542592017d9ef1ddb7d79f24832f78fc /src/a.php
parent9fbc7168397ff77c015e34c863d4631335132d38 (diff)
downloadphpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.tar.gz
phpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.tar.zst
phpstudy-169-slides-b7388cdc04ee6385fea7cd5e6e2fdc57b1845624.zip
Add slidesHEADmain
Diffstat (limited to 'src/a.php')
-rw-r--r--src/a.php13
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";
+}