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

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -