[TYPO3-core] FYI: Committed fix in t3lib_beFunc::getRecordWSOL

Martin Kutschker Martin.Kutschker at blackbox.net
Sat Dec 17 20:14:44 CET 2005


Michael Stucki <michael at typo3.org> writes on 
Sat, 17 Dec 2005 14:53:46 +0100 (MET):

> Hi Dmitry,
> 
> 
> > > On Friday 16 December 2005 22:16, Holzinger Franz wrote:
> > > > I have never seen something like this:
> > > > > $key{0} !== '_'
> > > >
> > > > What does this mean?
> > >
> > > "If the first character of $key is not exactly '_' ..."
> >
> > Should not this be $key[0] (note brackets)? Or it is in e-mail
> > only?
> > Could not look to CVS, no connection to sf from here. :(
> 
> No this is correct. [0] means the first element of an array,


Historical info: square brackets could (and probably can still be used) to retrieve characters ftom a string, but the curly brackets are now (see PHP doc for the version info) the preferred way.

Masi 



More information about the TYPO3-team-core mailing list