Skip to content

Instantly share code, notes, and snippets.

@TakesTheBiscuit
Last active March 22, 2018 23:09
Show Gist options
  • Save TakesTheBiscuit/c80d54efef3ed7cb6dcdb50ec4ee1820 to your computer and use it in GitHub Desktop.
Save TakesTheBiscuit/c80d54efef3ed7cb6dcdb50ec4ee1820 to your computer and use it in GitHub Desktop.
Blog example of juggling 1
<?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