note 104067 added to language.operators.comparison
| From: | kokuswolf at pireality dot de | Date: | Fri, 20 May 2011 16:51:18 +0000 |
| Subject: | note 104067 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179914@lists.php.net to get a copy of this message | ||
@JP Kleijn
I think, it belongs to the nature of unset:
<?php
$var3 = 1;
echo unset($var3); // Outputs the same Error
?>
As I understand this, unset doesnt return an Expression, so it cant use there. See this here:
<?php
true ? (unset) $var3 : null;
?>
This doesnt return an Error, ... for more sence:
<?php
$var3 = 1;
$var3 = true ? (unset) $var3 : 1;
var_dump($var3); // Outputs NULL
?>
----
Server IP: 69.147.83.197
Probable Submitter: 217.91.162.102
----
Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php
Edit -- https://master.php.net/note/edit/104067
Del: integrated -- https://master.php.net/note/delete/104067/integrated
Del: useless -- https://master.php.net/note/delete/104067/useless
Del: bad code -- https://master.php.net/note/delete/104067/bad+code
Del: spam -- https://master.php.net/note/delete/104067/spam
Del: non-english -- https://master.php.net/note/delete/104067/non-english
Del: in docs -- https://master.php.net/note/delete/104067/in+docs
Del: other reasons-- https://master.php.net/note/delete/104067
Reject -- https://master.php.net/note/reject/104067
Search -- https://master.php.net/manage/user-notes.php