SyntaxFix
Write A Post
Hire A Developer
Questions
A short version:
$NewString = substr_replace($String,$Replacement,strrpos($String,$Replace),strlen($Replace));