ID: 34532 Updated by: [EMAIL PROTECTED] Reported By: phpbugs at majiclab dot com -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: N/A PHP Version: 5.0.5 New Comment:
We discussed this a year ago, and came to the conclusion that we could not agree on semantics. This is why we will not be adding this feature to PHP. Previous Comments: ------------------------------------------------------------------------ [2005-09-16 20:35:54] phpbugs at majiclab dot com Description: ------------ It would be nice if empty() would accept multiple arguments like isset() does. It would be functionally equivalent to: empty(var) || empty(var2) ... || empty(varN) Reproduce code: --------------- <?php $a = 1; if (empty($a, $b, $c)) { echo 'Either $a, $b or $c was empty/did not exist.'; } ?> Expected result: ---------------- Either $a, $b or $c was empty/did not exist. Actual result: -------------- parse error, unexpected ',', expecting ')' in /.../file.php on line 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34532&edit=1