SyntaxFix
Write A Post
Hire A Developer
Questions
I use strrchr(). For instance to find the extension of a file I use this function:
$string = 'filename.jpg'; $extension = strrchr( $string, '.'); //returns ".jpg"