This function removes all special characters - \t\n\r\0\x0B?#!@%^&*()\"',.\/;:><[]{}+=-_|`~
and returns the new one.
function trimall($str, $charlist = " \t\n\r\0\x0B?#!@%^&*()\"',.\/;:><[]{}+=-_|`~")
{
$str=str_replace("$",'',$str);
return str_replace(str_split($charlist), '', $str);
}
Monday, June 16, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment