Return to Snippet

Revision: 57987
at June 19, 2012 20:26 by Narayon


Initial Code
## strip_special_chars($string) [php]

function strip_special_chars($string){ 
  $string = preg_replace('/([^.a-z0-9]+)/i', '_', $string);
  return $string;  
}

Initial URL

                                

Initial Description
replace special characters

Initial Title
## strip_special_chars($string) [php]

Initial Tags
php, replace

Initial Language
PHP