Bug #15328: A C-like comma operator would be useful
| From: | hek at loudoun-net dot com | Date: | Fri, 01 Feb 2002 18:42:17 +0000 |
| Subject: | Bug #15328: A C-like comma operator would be useful | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78790@lists.php.net to get a copy of this message | ||
From: hek@loudoun-net.com
Operating system: N/A
PHP version: 4.1.1
PHP Bug Type: Feature/Change Request
Bug description: A C-like comma operator would be useful
A C-like comma operator would be useful, to string together series of
statements.
Example:
echo ( $precondition
? ( doThisAndDiscardReturnValue(),
andDoThisAndReturnReturnValue() )
: doSomethingElseAndReturnReturnValue() );
--
Edit bug report at: http://bugs.php.net/?id=15328&edit=1