Last active
August 19, 2019 18:53
-
-
Save PedroRajao/0aa5ad789bc12fca3c83b717a062d4a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
for ($i=1; $i<=100; $i++) { | |
if ($i%3 == 0 && $i%5 == 0) { | |
echo 'FizzBuzz' . "\026\n"; | |
} elseif ($i%3 == 0) { | |
echo 'Fizz' . "\026\n"; | |
} elseif ($i%5 ==0) { | |
echo 'Buzz' . "\026\n"; | |
} else { | |
echo $i . "\026\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"\026\n" = new line in bash