[Typo3-dev] PHP5
Kasper Skårhøj
kasper at typo3.com
Tue Apr 20 20:23:12 CEST 2004
> > $a = 'I honestly thought this was an array';
> > echo $a[3];
> > echo $a[3]['someindex'];
> >
> > ---
> > in PHP4 this will return an h (the third letter in the string), and
> > ignore the line third line.
> >
> > PHP5 returns an h, and a fatal error.
>
> Note that it should reade $a{4} anyway (square brackets for string
> indexing is deprecated).
-... and at least in the core of TYPO3 I would be surprised to find any
string-indexes. Have never used them (knowingly...:-)
More information about the TYPO3-dev
mailing list