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

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -