note 114783 added to control-structures.alternative-syntax
| From: | v14t at gmx dot com | Date: | Sun, 06 Apr 2014 14:14:03 +0000 |
| Subject: | note 114783 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199195@lists.php.net to get a copy of this message | ||
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
----
Server IP: 72.52.91.14
Probable Submitter: 134.19.208.216
----
Manual Page -- http://php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/114783
Del: integrated -- https://master.php.net/note/delete/114783/integrated
Del: useless -- https://master.php.net/note/delete/114783/useless
Del: bad code -- https://master.php.net/note/delete/114783/bad+code
Del: spam -- https://master.php.net/note/delete/114783/spam
Del: non-english -- https://master.php.net/note/delete/114783/non-english
Del: in docs -- https://master.php.net/note/delete/114783/in+docs
Del: other reasons-- https://master.php.net/note/delete/114783
Reject -- https://master.php.net/note/reject/114783
Search -- https://master.php.net/manage/user-notes.php