Hello,
First, I tried to use Search on this site to find "phone validation", then "phone", then "validat", then "check phone"... and didn't get any result. I think I am doing something wrong with search, because somebody should have the same question...
Question:
I want to validate phone number. Allowed characters are: digits,
blank character, parenthesis "(", ")", dash "-", and plus "+". My idea is to transform these character (with string replace function) to digits and than to check if the result is number (is_numeric).
Does "ereg_replace()" replace all occurencies of pattern String?