Re: RFC - Array slice syntactic sugar

From: Date: Fri, 20 Mar 2015 16:24:24 +0000
Subject: Re: RFC - Array slice syntactic sugar
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  Groups: php.internals 
Request: Send a blank email to internals+get-85305@lists.php.net to get a copy of this message
On 20 March 2015 at 16:17, Leigh <leight@gmail.com> wrote: > $thing[-1:] is in scope for arrays though How would this work for slicing? Since doing [@-1:] would mean get the last element to the end. And doing [@1:-1] is the exact same as doing [@1:] since -1 and blank both mean the end.

« previous php.internals (#85305) next »