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

Martin Kutschker Martin.Kutschker at blackbox.net
Sun Dec 18 17:16:49 CET 2005


Dmitry Dulepov <dima at spamcop.net> writes on 
Sun, 18 Dec 2005 17:09:36 +0100 (MET):

> 
> Strange... PHP is C-like, strange that they decided to change it.
> Curly brackets are traditionally used to open/close blocks of code but
> square backets naturaly access individual elements. One of those bad
> changes in life...


I don't think it's that bad. Square brackets denote traditionally *array* elements. C sees a string as an array of characters. Basically because it's the way it's implemented in the "hardware". That's not really the case in PHP.

IMHO it makes sense to use a differnet kind of operator to access characters of a string than to access array elements, if those two things are distinct.

Masi 



More information about the TYPO3-team-core mailing list