Answer the question
In order to leave comments, you need to log in
How can str_replace only last?
Like str_replace only the last . on _home
$string = 'thumbs/2015/03/220px-Harvard_Wreath_Logo_1.svg-pvWrLY0xXuP1RbkQ8fJkHgbHFqKnmciQ.png'
thumbs/2015/03/220px-Harvard_Wreath_Logo_1.svg-pvWrLY0xXuP1RbkQ8fJkHgbHFqKnmciQ_home.png
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question