Validating phone number php

I think I need to use ereg, but apparently I am not using it correctly. ereg("^([0-9])$", $_POST["local_phone"])) return error... I would greatly appreciate a sample of this being done correctly if possible.

validating phone number php-18validating phone number php-8validating phone number php-24

I just need to make sure only numbers are left, since I've removed other characters associated with phone numbers.

This seems to work (for the given expression): $ph = "(123) 456-7890"; $regex = "((\([0-9]\) ?

There could be additional releases where needed to fix critical issues that can not wait until the next release from Google.

This does mean that this project may not follow Semantic Versioning, but instead Google's version policy.

I'm not sure about 5.3.4 final, but it is written that some 5.3.4-snapshot versions also were affected.

Last modified 28-Jul-2016 00:54