Re: FW: Functionality request/proposal
On Sun, Jan 13, 2013 at 9:01 PM, Paulo Henrique Torrens <
[email protected]> 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.
Thread (7 messages)