Sounds great. Python has something similar for tuples, would be good if PHP
had this.
Are there any BC concerns? Don't see why this could break something.
On Jul 18, 2012 3:50 PM, "Laruence" wrote:
> Hi:
> this is not a new RFC, I proposed it before, but due to my poor
> english and improp
Hi:
this is not a new RFC, I proposed it before, but due to my poor
english and improper examples, it didn't get passed.
This feature introduces list() support in foreach constructs(more
info can be found here: https://wiki.php.net/rfc/foreachlist):
what do you think? personall
Hi:
I found this feature was decided to do in PHP 5.3 TODO list :
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/TODO?revision=242949&view=markup
so I was wondering does this previous decision still shoudl be
think as valid? hehe
thanks
2011/7/7 Xinchen Hui :
> Hi:
>
> thanks
Hi:
thanks very much for this, that second patch is a wrong one, updated ..
thanks
2011/7/7 Nikita Popov :
> +1 for adding this.
>
> I don't know enough C to review the patches. The first one looks fine though
> at first glance (apart from some CS *nits probably, like duplicate
> parenthesis
+1 for adding this.
I don't know enough C to review the patches. The first one looks fine though
at first glance (apart from some CS *nits probably, like duplicate
parenthesis and usage of if {} else { if {} else {}} instead of if {} elseif
{} else {}).
Your second patch (the one for adding the s
Hi:
first of all, I am a guy whose english is poor, sorry for making you confuse.
the feature request is here: https://bugs.php.net/bug.php?id=10203
and I think this can make php code more flexible, and more making sense.
example:
foreach (array(
array(3, array(1, 2)),
ar
Hi,
On 07/06/2011 03:06 PM, Hannes Magnusson wrote:
> 2011/7/6 Xinchen Hui :
>>
>> T_LIST is not allowed to used with foreach before.
>>
>> and then there comes a freature request: #10203 allow
>> foreach($array as list($a,$b)
>
> Ironically enough you managed to miss the last closing ), en
2011/7/6 Xinchen Hui :
> Hi:
>
> T_LIST is not allowed to used with foreach before.
>
> and then there comes a freature request: #10203 allow
> foreach($array as list($a,$b)
Ironically enough you managed to miss the last closing ), enforcing
the point of this not being a natural syntax.
Fur
Hi:
T_LIST is not allowed to used with foreach before.
and then there comes a freature request: #10203 allow
foreach($array as list($a,$b)
I have work on it, and now submit patch to internal.
I have set up a rfc page in wiki.php.net:
https://wiki.php.net/rfc/foreachlist
do you