Bug #10483: someFunction() OR break;

From: Date: Wed, 25 Apr 2001 02:17:39 +0000
Subject: Bug #10483: someFunction() OR break;
Groups: php.dev 
Request: Send a blank email to php-dev+get-52338@lists.php.net to get a copy of this message
From: fabiankessler@usa.net Operating system: all PHP version: 4.0.4 PHP Bug Type: Feature/Change Request Bug description: someFunction() OR break; why is the syntax someFunction() OR anotherFunction(); only possible with a function on the right side of the OR? cause it has to return something? would be nice to be able to to someFunction() OR break; example: $success = FALSE; do { // try block doSomething("foo") OR break; doSomething("bar") OR break; doSomething("hello") OR break; doSomething("world") OR break; $success = TRUE; } while (FALSE); echo ($success) ? 'yes' : 'no'; greetings fab -- Edit Bug report at: http://bugs.php.net/?id=10483&edit=1

« previous php.dev (#52338) next »