[TYPO3-core] RFC #9779: t3lib_div::trimExplode limit parameter leads to wrong result with non-empty requirement

Xavier Perseguers typo3 at perseguers.ch
Wed Mar 11 10:31:59 CET 2009


Hi Ingo,

>> $parts = explode('/', $path, 2);
>> // $parts[0] => 'extension'
>> // $parts[1] => 'some/relative/path';
> 
> but as you show in your example a regular explode() is good enough here.

For sure. But I thought you did not see a "real-life" example of why 
this behavior was useful in explode at all. I misunderstood your answer.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-team-core mailing list