Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

Compare and contrast iterations and increments.

Answered: 1 week ago

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago