> is there a quick and easy way to check a string for non numeric characters ?
i have thought of making a routine to check each character to confirm it is 0 - 9 but was wondering if there was a quicker way???
Do you want to only check if there are non-numeric chars (as stated in message
body), or remove them (as stated in message subject)?
If only check, then use "is_numeric" function. If replace, then you can
use some regular expressions replacement like:
$result = ereg_replace( '[^0-9]+', '', $source );
Hilarion