Posted By

nico65 on 04/21/11


Tagged


Versions (?)

special character remove from string (quick n dirty)


 / Published in: PHP
 

URL: http://ahsangill.wordpress.com/2009/12/15/php-remove-special-characters-from-a-string/

  1. preg_replace('/[^a-z0-9]/i', '_', $string)

Report this snippet  

You need to login to post a comment.