This is the my code i tried
foreach ($data2 as $row){
$hp=$data3[$row['NoHP']];
$result = "https://reguler.zenziva.net/apps/smsapi.php?userkey=asdasads&passkey=dhdgfhdfh&nohp='$hp'&pesan='test'";
simplexml_load_file($result);
}
I want to loop sending message using the API, but the phone number is result_array
which I take from model. How can I enter the phone number to the URI by looping? How can I send message as many phone numbers as I get?
Hope this will help you :
Use $row['NoHP']
if it contains mobile number like this:
foreach ($data2 as $row)
{
$hp = $data3[$row['NoHP']];
$result = "https://reguler.zenziva.net/apps/smsapi.php?userkey=asdasads&passkey=dhdgfhdfh&nohp=".$row['NoHP']."&pesan='test'";
simplexml_load_file($result);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.