Re: FW: Functionality request/proposal

From: Date: Mon, 14 Jan 2013 02:19:27 +0000
Subject: Re: FW: Functionality request/proposal
References: 1 2  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-15315@lists.php.net to get a copy of this message
On Sun, Jan 13, 2013 at 9:01 PM, Paulo Henrique Torrens < paulo_torrens@hotmail.com> wrote: > Hi, > > I'm currently interested in two features I'd like to see in PHP; how do I > proceed to request/propose them? I'd be glad to help implementing them as > well, if necessary. > > > One of them is really simple, but would be helpful to people with > different coding styles > > class Test { > public function blabla() { > // ... > } // < the interpreter fails if there > // is a semicolon here, although > // some c++ programmers may be used > // to add it > }; > > And the other one would be multiple return values > > function multi() { > return 10, 20; > }; > function sum($a, $b) { > return $a + $b; > }; > > echo sum(multi()); // echoes 30 > > $x, $y = multi(); > > echo $y; // echoes 20 > > > > > > > > Thank you! > > > This is a list for maintaing the php.net website. Please try the internals mailing list for discussion of developing the PHP language. Thanks.

« previous php.webmaster (#15315) next »