Bug #15328 Updated: A C-like comma operator would be useful

From: Date: Fri, 01 Feb 2002 19:49:21 +0000
Subject: Bug #15328 Updated: A C-like comma operator would be useful
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78807@lists.php.net to get a copy of this message
ID: 15328 Updated by: derick@php.net Reported By: hek@loudoun-net.com Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: N/A PHP Version: 4.1.1 New Comment: not likely to be implemented... bogussing. Previous Comments: ------------------------------------------------------------------------ [2002-02-01 13:42:17] hek@loudoun-net.com A C-like comma operator would be useful, to string together series of statements. Example: echo ( $precondition ? ( doThisAndDiscardReturnValue(), andDoThisAndReturnReturnValue() ) : doSomethingElseAndReturnReturnValue() ); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15328&edit=1

« previous php.dev (#78807) next »