SyntaxFix
Write A Post
Hire A Developer
Questions
$image_name = "this-is.file.name.jpg"; $last_dot_index = strrpos($image_name, "."); $without_extention = substr($image_name, 0, $last_dot_index);
Output:
this-is.file.name