note 119400 deleted from language.operators.logical by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 29 May 2016 09:33:37 +0000 |
| Subject: | note 119400 deleted from language.operators.logical by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205608@lists.php.net to get a copy of this message | ||
Note Submitter: Marjune
----
when using == and === against boolean
e.g
<?hp
// this condition is always true
if ("some string") {
}
// same thing with this
$var = true;
if ($var == "some string") {
}
// so better use this one
if ($var === "some string") {
}