note 104067 deleted from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Mon, 23 May 2011 15:15:05 +0000 |
| Subject: | note 104067 deleted from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179984@lists.php.net to get a copy of this message | ||
Note Submitter: kokuswolf at pireality dot de
----
@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
?>