note 115570 added to language.operators.comparison
| From: | ps at indiwan dot de | Date: | Mon, 18 Aug 2014 15:52:08 +0000 |
| Subject: | note 115570 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200211@lists.php.net to get a copy of this message | ||
Probably in 5.4.24 only,
the trinity operator ( ? : ) will cause "isset not defined/ empty not defined" errors when
using it in conjunction with php short tags and boolean operators:
<?
$x = isset($fromto['from']) || isset($fromto['to']) ? 'x' :
''
?>
----
Server IP: 72.52.91.14
Probable Submitter: 80.147.11.43
----
Manual Page -- http://php.net/manual/en/language.operators.comparison.php
Edit -- https://master.php.net/note/edit/115570
Del: integrated -- https://master.php.net/note/delete/115570/integrated
Del: useless -- https://master.php.net/note/delete/115570/useless
Del: bad code -- https://master.php.net/note/delete/115570/bad+code
Del: spam -- https://master.php.net/note/delete/115570/spam
Del: non-english -- https://master.php.net/note/delete/115570/non-english
Del: in docs -- https://master.php.net/note/delete/115570/in+docs
Del: other reasons-- https://master.php.net/note/delete/115570
Reject -- https://master.php.net/note/reject/115570
Search -- https://master.php.net/manage/user-notes.php