dimanche 4 décembre 2016

Replace a string, with another, when the first starts and ends with specific string in PHP

I have a few strings in PHP that are like this "abc167828xyz", where the numbers in the middle are generated by random. Now I want to replace every string that starts with "abc" and ends with "xyz" with another one. Remember that the numbers are generated by random!

Is not a duplicate. I want to replace strings, NOT to find files. Sorry but I am new in PHP




Aucun commentaire:

Enregistrer un commentaire