Hello List.

I need to remove characters from a string and replace them with and underscore.

So instead of having something like:

$moditem = str_replace("--","_","$mystring");
$moditem = str_replace("?","_","$mystring");
$moditem = str_replace("!","_","$mystring");

For every possible character I can think of, is there a way to simply omit any character that is not an alpha character and not a number value from 0 to 9?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to