View Single Post

  #5 (permalink)  
Old 07-13-2003
Agelmar
 
Posts: n/a
Default Re: Upgrade to PHP5 (beta)

"Keith Maika" <slick@aoeex.com> wrote in message
news:vh11pgc5evdf0d@corp.supernews.com...
> Agelmar wrote:
> > Louis-Philippe Huberdeau wrote:
> >

> ...
> >
> > I seem to recall that they were proposing eliminating indexing into a

string
> > via $somestring[$index], going for instead $somestring{$index} or

something
> > of that nature. Do you recall if that was implemented?
> >
> > // Ian
> >
> >

>
> That has been done for a long time. Maybe they are finally going to
> remove support for $something[$index] but it's been in the manual for
> quite some time that they do not want you do use that syntax, and rather
> $something{$index} should be used.


Hmm... personally, I much prefer $something[$index] as it's closer to C, and
just feels more natural :-) No idea why they changed it $string{$index}
just feels like a concatenation of $string and $index... I mean come on,
you're indexing into the string, why drop the array subscripting? gah...



Reply With Quote