On 1/14/13 9:53 PM, Paulo Henrique Torrens wrote:
lots of code where people put it there, and I always get a little frustrated
when using
PHP because I'm used on adding it (without even noticing), and my code keeps
failing
Pay more attention and/or use an IDE that has templates and shows pars
guys will tell me to use something like flatten(), probably
RecursiveArrayIterator or stuff, but... for future implementations, that
multiple return would help. =P
Better?
Date: Mon, 14 Jan 2013 14:48:08 +0100
Subject: Re: [PHP-DEV] FW: Functionality request/proposal
From: krebs
2013/1/14 Johannes Schlüter
> On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens 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.
> >
> >
> > On
On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens 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 b
On 14/01/13 05:10, Paulo Henrique Torrens 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.
You should propose it here and then create a rfc about it in the p
Hi!
> function multi() {
> return 10, 20;
> };
This can be done with:
function multi() {
return [10, 20];
}
list($x, $y) = multi();
However, sum() won't work this way:
> echo sum(multi()); // echoes 30
But can work this way:
call_user_func_array("sum", multi());
--
Stanislav Ma