Created
April 12, 2018 10:12
-
-
Save Goryudyuma/a540453353895d20ce119e44ca6afe41 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 | |
$i = 1; | |
while(true): | |
if($i%15 === 0): | |
echo 'FizzBuzz'; | |
elseif($i%3 === 0): | |
echo 'Fizz'; | |
elseif($i%5 === 0): | |
echo 'Buzz'; | |
else: | |
echo $i; | |
endif; | |
echo PHP_EOL; | |
$i++; | |
endwhile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment