Skip to content

Instantly share code, notes, and snippets.

@StudioLE
Last active November 23, 2015 21:59
Show Gist options
  • Select an option

  • Save StudioLE/97f2e5384a45f9fe9d38 to your computer and use it in GitHub Desktop.

Select an option

Save StudioLE/97f2e5384a45f9fe9d38 to your computer and use it in GitHub Desktop.
for ($i = 1; $i <= 100; $i++) {
if ($i % 3 == 0) {
echo "Fizz";
}
elseif ($i % 5 == 0) {
echo "Buzz";
}
else {
echo $i;
}
echo "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment