Re: RFC - Array slice syntactic sugar

From: Date: Fri, 20 Mar 2015 23:23:18 +0000
Subject: Re: RFC - Array slice syntactic sugar
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-85349@lists.php.net to get a copy of this message
On 20 March 2015 at 23:03, Stanislav Malyshev <smalyshev@gmail.com> wrote: > $array[*1:4] by reference - > what is actually passed? > Implementation is not something I have looked into for this yet, so I am unsure how this would be possible; but by passing $array[*1:4], you'd be passing an extracted array which is a reference to the original array. Such that changing the sub array can change the parent array.

« previous php.internals (#85349) next »