Skip to content

Instantly share code, notes, and snippets.

@withinboredom
Created October 31, 2017 19:49
Show Gist options
  • Save withinboredom/f64110e83fce78ba6814456d2b6cc410 to your computer and use it in GitHub Desktop.
Save withinboredom/f64110e83fce78ba6814456d2b6cc410 to your computer and use it in GitHub Desktop.
What a for loop really is
<?php
for($a = 0; $a < 5; $a = $a + 1) {
echo $a;
}
{
$a = 0;
while($a < 5) {
{
echo $a;
}
$a = $a + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment