regex - string replace (php) -


Does anyone suggest a quick task that will automatically spill out the spaceship & amp; The apostrophes from a string in PHP

For example, I need to remove any unwanted stuff from the string.

  $ email = "myname's@site.com"; // apostrope needs to be removed & amp; The empty space    

$ email = str_replace (array ("'",' '),' ', $ Email);

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -