From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]