php - How to remove part of a string? -


How to trim a part of the string, and save it to MySQL in a special string using PHP ?

Example string: "Registry 11223344 here"

How can I remove "11223344" from the example string?

If you are specifically targeting "11223344", then use it:

  echo str_replace ("11223344", "", "Registry 11223344 here");  

Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -