Last active
March 22, 2018 23:09
-
-
Save TakesTheBiscuit/c80d54efef3ed7cb6dcdb50ec4ee1820 to your computer and use it in GitHub Desktop.
Blog example of juggling 1
This file contains hidden or 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 | |
// balls becomes an INT | |
$balls = 1; | |
// truthy check | |
if ($balls) { | |
$balls += 1; | |
} | |
// outputs: 2 | |
echo $balls; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment