how would i just strip all of the "-"'s from a string?
With regexp:
$str = preg_replace("/-/","",$str);
Originally posted by pyro With regexp: $str = preg_replace("/-/","",$str); [/B]
Originally posted by pyro With regexp:
[/B]
No need for that even, [man]str_replace[/man] is what the Doctor ordered...
$str=str_replace("-", "", $str);
Ah... right you are...
thanks to both of you problem solved