Question: Please I need PHP code to valid phone number by using arrays, regular expressions and loop, we should have 2 arrays, array1 for valid phone

Please I need PHP code to valid phone number by using arrays, regular expressions and loop, we should have 2 arrays, array1 for valid phone numbers, and array2 for an invalid phone number, then use regular expressions to validation phone number, then loop.

for example :

array 1 Vaild phone number 2534441234 253-434-1234 253.345.5468 (235) 908 3456

array 2 Invalid phone number (235)-444-1234 (253-434-1234 253)12345678 206-.755-8180 206-4948181 2065438-987 253 345 )5342

Please I need PHP code to valid phone number by using arrays,

regular expressions and loop, we should have 2 arrays, array1 for valid

YEAH MATCH!!! Test another phone number Phone number: 253-444-5555 Go! * Sorry that's not a valid phone number Test another phone number Phone number: 253)444-5555 Go

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!