Question: Please I need php code to vaild phone number as below: array 1 Vaild phone number xxxxxxxxxx xxx-xxx -xxxx xxx.xxx.xxxx (xxx) xxx xxxx array 2

Please I need php code to vaild phone number as below:

array 1 Vaild phone number xxxxxxxxxx xxx-xxx -xxxx xxx.xxx.xxxx (xxx) xxx xxxx

array 2 Invalid phone number (xxx)-xxx-xxxx (xxx-xxx-xxxx xxx)xxxxxxx xxx-.xxx-xxxx xxx-xxxxxxx xxxxxx-xxxx xxx xxx xxxx

For phone checker by PHP, please I need to create two arrays of phone numbers, using the patterns above. One array should contain only invalid phone numbers. The other array should contain only valid phone numbers. Use numbers 0,1, ... 9 instead of the x. Vary the numbers you use, after that use regular expressions to test for Valid formats based on the rules above, after that create loop through the arrays. For each value, echo the phone number. Also, display whether the valid checker code finds the phone number valid or invalid.

Please I need php code to vaild phone number as below: array

Thanks,

Enetr phone Number Validate 123-123-1234 phone number is vilad Validate Enetr phone Number (123) 123-1234 phone number is vilad Enetr phone Number Validate 123-4567890 phone number not vaild Enetr phone Number Validate 123456-7890 phone number not vaild

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!