note 114783 deleted from control-structures.alternative-syntax by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:36:23 +0000 |
| Subject: | note 114783 deleted from control-structures.alternative-syntax by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215219@lists.php.net to get a copy of this message | ||
Note Submitter: v14t at gmx dot com
----
isset( $value ) AND print( $value );
the reason why it doesn't work with echo, it's because echo does not return anything,
while print _always_ returns 1, which is considered true in the expression