## strip_special_chars($string) [php]


/ Published in: PHP
Save to your folder(s)

replace special characters


Copy this code and paste it in your HTML
  1. ## strip_special_chars($string) [php]
  2.  
  3. function strip_special_chars($string){
  4. $string = preg_replace('/([^.a-z0-9]+)/i', '_', $string);
  5. return $string;
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.