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
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.
Loop it through
foreach
and use Laravel Phone library to validate those.This allows to