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 -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -