Created
May 2, 2012 11:56
-
-
Save philsturgeon/2576068 to your computer and use it in GitHub Desktop.
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
// 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; |
They are not the same, you should use whichever is correct for the task.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I thought it was strange that Fuel used AND instead of && for this reason.