Re: list() inside a foreach()

From: Date: Thu, 09 May 2013 16:46:48 +0000
Subject: Re: list() inside a foreach()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-67379@lists.php.net to get a copy of this message
On 05/09/2013 06:42 PM, Sherif Ramadan wrote: > On Thu, May 9, 2013 at 12:39 PM, Stefan Neufeind <neufeind@php.net> wrote: > >> Hi, >> >> trying out the following source I was astonished to see that using >> list() does not work directly in a foreach() but works fine if used >> through a temporary variable. >> >> > Hi, > > This feature was already voted in and accepted. > https://wiki.php.net/rfc/foreachlist#vote > > It has been implemented in PHP 5.5 Thanks for the quick reply and sorry for the noise. I didn't follow that closely. Nice to see my thoughts were correct this would be logical :-) Regards, Stefan

« previous php.internals (#67379) next »