php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15328 A C-like comma operator would be useful
Submitted: 2002-02-01 13:42 UTC Modified: 2002-02-01 14:49 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: hek at loudoun-net dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.1.1 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hek at loudoun-net dot com
New email:
PHP Version: OS:

 

 [2002-02-01 13:42 UTC] hek at loudoun-net dot com
A C-like comma operator would be useful, to string together series of statements.

Example:

echo (    $precondition
          ? ( doThisAndDiscardReturnValue(), andDoThisAndReturnReturnValue() )
          : doSomethingElseAndReturnReturnValue() );

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-01 14:49 UTC] derick@php.net
not likely to be implemented... bogussing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Mar 10 22:01:33 2025 UTC