How to replace last occurrence of a string in php?
Mayank
194
Points
12
Posts
|
Anyone know of a very fast way to replace the last occurrence of a string with another string in a string in PHP? Thanks.. |
Answers
Jak
908
Points
132
Posts
|
Following will just replace the last occurrence of a substring inside of a string, you can copy this function into you code:
Posted On:
24-Nov-2017 22:32
strrpos() method returns the position of the last occurrence in a string - Jak 24-Nov-2017 22:35
|