Send SMS to multiple numbers using PHP?

1.1k views Asked by At

I have a link that works directly from browser that is the sms gateway we are using. I am trying to make to send sms to multiple numbers using php and mysql as database please help me with full code.

2

There are 2 answers

2
Ramkumar Chandrasekar On

1.get all mobile numbers in array 2.fetch and run feach loop 3.put that senting code. ex:

$data = array('9940272758','213456789','8973557140');
foreach($data as $value){
  sendapi($value,"hi","somthing");
}
2
Balsara Dhaval On

$result=$array(); //Get from database here assume it is $result

foreach($result as $mbl){
  sendapi($mbl['phone'],$mbl['message']);
}