Re: Using constructs like unset() in expressions like ()&&()
| From: | Tomas Tintera | Date: | Thu, 16 Dec 2004 21:41:15 +0000 |
| Subject: | Re: Using constructs like unset() in expressions like ()&&() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204542@lists.php.net to get a copy of this message | ||
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
<?php (True==False) or (construct_i_am_looking_for(unset($a))); ?>
Note that the unset() has no return value (and so it can't be used as a
part of other expression; it can be only used as a stand-alone
statement), so I thing it could be good if there were some construct
which makes expression with return value from expression with no return
value.
It is not possible to use just
<?php (True==False) or (unset($a)); ?>
I have read the whole front section of the PHP manual (and a lot of the
rest) but haven't found a construct like that.
Is there such a construct in PHP? If there is, what is its name?
--Tomas_Tintera