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

From: Date: Mon, 16 Jun 2008 14:26:00 +0000
Subject: Re: deprecation status of $str{42} versus $str[42]
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-38286@lists.php.net to get a copy of this message
Hello, On Sun, Jun 15, 2008 at 11:20 PM, Arvids Godjuks <arvids.godjuks@gmail.com> wrote: > String is an array of chars, always was and is such in any programming > language. So I see argument for {} as missing knowledge for some programming > basics. > > And I don't understand why are you arguing on this. This was decided for > removal long ago - so just do it. > Seems like you are missing some PHP programming basics. Strings are not an array of chars, please go back to making ping pong in java c# or whatever other little comp sci classes you took. PHP is not any of them. Foreach("foo" as $key => $char) {}, after learning, please be quiet and let andi answer my question on his ideas he had for improvements to the existing and once favored syntax. -Chris

« previous php.internals (#38286) next »