note 116129 deleted from control-structures.alternative-syntax by salathe
| From: | salathe@php.net | Date: | Wed, 12 Nov 2014 14:47:39 +0000 |
| Subject: | note 116129 deleted from control-structures.alternative-syntax by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200894@lists.php.net to get a copy of this message | ||
Note Submitter: mingyueyucai at 163 dot com
----
isset( $value ) AND print( $value );
Someone consider the codes above as an alternative syntax. However it's not.
The reason for the two different variations of "and" and "or" operators is that
they operate at different precedences. (See http://php.net/manual/en/language.operators.precedence.php)