skip to Main Content

I am working in laravel v4.2 project and I have an array of contact numbers like below:

$numbers = array(+156258544,+9661234667,+96592514525,...);

Now I want to validate this array of numbers that which contact number is valid or not valid.

Is there any free or paid API like twillio who validate array of numbers instead of single contact number.

OR any other method that is useful for this issue?

Thank you

2

Answers


  1. In first step, you have to check if this phone number format is really correct. Then, you can check this link for phone numbers validation.

    Login or Signup to reply.
  2. Loop it through foreach and use Laravel Phone library to validate those.

    This allows to

    1. Validate Number
    2. Format Number
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search