I thought it was supposed to work like so:
$string contains letters, numbers, spaces, dashes, whatever...
$result = preg_replace("[^0-9]","", $string);
$result should only contain the numbers.
If it's not a 0-9, replace it with "".
Yes? No? Syntactical error?
Thanks!