[TYPO3-core] Decisions and Changes to Coding Guidelines (CGL)

Michiel Roos michiel at maxserv.nl
Thu Jan 30 15:14:29 CET 2014


Can we make a note about using array access of variables when testing for the occurrence of a single character in a string?

Use this:
$string{2} === 'a'

Instead of:
strpos($string, 'a') === 2


More information about the TYPO3-team-core mailing list