[TYPO3-core] RFC #12604: fileNameASCIIPrefix got deprecated but is used in core
Benjamin Mack
benni at typo3.org
Fri Feb 19 21:23:45 CET 2010
On 19.02.10 20:53, Steffen Kamper wrote:
> Hi,
>
> this can't be correct
>
> // remove extension
> $filename = substr($filename, 0, strrpos($filename, '.'));
>
> please recheck.
Hey Steffen:
substr($wholeString, (int) $begin, (int) $length)
strrpos($haystack, $needle) => gets the last occurence.
It is correct AFAICS :)
Benni.
More information about the TYPO3-team-core
mailing list