Re: Re: deprecation status of $str{42} versus $str[42], revisited

From: Date: Tue, 28 Sep 2010 22:53:31 +0000
Subject: Re: Re: deprecation status of $str{42} versus $str[42], revisited
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-49800@lists.php.net to get a copy of this message
On Sep 28, 2010, at 2:28 PM, Peter Cowburn wrote: > On 23 September 2010 21:39, Arvids Godjuks <arvids.godjuks@gmail.com> wrote: >> I think leave both ways, because it's really much of the code uses actually >> {4} rather than [4] for strings. >> But please do the substr functionality as it was suggested a few years >> before. That makes perfect sense :) >> > > Are there any further thoughts on this thread? Even though {} is a > small and likely uninteresting topic, it would be nice to actually > (finally, until we change our minds) come to a conclusion and unite > the code with the docs. Was going to wait a week (we're close enough) but this thread (and past ones) decided that $str{42} is no longer deprecated, with hope that the syntax will be optimized by Chris, Andi, or whoever scratches that itch in the future. The documentation will be updated. Regards, Philip

« previous php.internals (#49800) next »