Menu
Hey guys!
I have a string which is a telephone number. This string may or may not contain non-numeric characters. In javascript I would have used a ‘while’ and ‘nan’ to get rid of non numerics but php’s is_nan give me a warning when encountering non-numerics.
Is there a string conversion function or some quick and simple way to parse the string and strip non-numerics…….I know……regexp!
I haven’t gotten round to learning regexp yet.
lol
Thanks,
CM