Skip to content

Instantly share code, notes, and snippets.

@gbaldera
Forked from philsturgeon/gist:2576068
Created May 2, 2012 12:58
Show Gist options
  • Save gbaldera/2576363 to your computer and use it in GitHub Desktop.
Save gbaldera/2576363 to your computer and use it in GitHub Desktop.
// The result of the expression (true && false) is assigned to $g
// Acts like: ($g = (true && false))
$g = true && false;
// The constant true is assigned to $h and then false is ignored
// Acts like: (($h = true) and false)
$h = true and false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment