Using constructs like unset() in expressions like ()&&()

From: Date: Wed, 15 Dec 2004 21:36:51 +0000
Subject: Using constructs like unset() in expressions like ()&&()
Groups: php.general 
Request: Send a blank email to php-general+get-204450@lists.php.net to get a copy of this message
Hi all. Is there some construct, which evaluates any type of its parameter (like t_echo, t_unset) and returns some value with normal type (like 0)? What? I would like to unset a variable in an operation like ()?unset():() and I can not use "if" because "if" does not return normal type of value (like 0 or 'a') and can not be used in operations like () && (). Tomas Tintera

« previous php.general (#204450) next »