我有以下php代码,它使用一些api
将短信发送给联系号码function send_sms($composedSmsMessage, $contactNumber) {
// some cURL function here to send SMS
echo "SMS sent to:" . $contactNumber . "<br>";
return 1;
}
$composedSmsMessage = "Welcome back...";
foreach ($newContacts as $newContact) {
$contactNumber = $newContact["s_contact_number"];
$smsStatus = send_sms($composedSmsMessage, $contactNumber);
// some more functions
flush();
}
当php在服务器上运行时,如何使用flush()或任何其他适当的函数来查看浏览器中send_sms()函数的文本回显。