note 73613 deleted from function.return by tularis

From: Date: Sun, 06 May 2007 15:26:08 +0000
Subject: note 73613 deleted from function.return by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126249@lists.php.net to get a copy of this message
Note Submitter: ufo at remove dot these dot parts dot quicknet dot nl ---- This works: $a = 0; $b = 2; function foo() { $a or $a = $b or die ("arg"); } This produces a syntax error: $a = 0; $b = 2; function foo() { $a or $a = $b or return ("arg"); } If it's not a bug, it's very counterintuitive!

« previous php.notes (#126249) next »