??????????????? ??????????????? '2018-06-30'"); while($usersRes = mysqli_fetch_array($usrquery)) { // Use the REST API Client to make requests to the Twilio REST API // Your Account SID and Auth Token from twilio.com/console $sid = 'AC6e2235a2b33d3aa4e75d05de99fa89c9'; $token = '92c54c5abae2eb7598611cb0e2b0afdd'; $clientT = new Twilio\Rest\Client($sid, $token); //$usersRes['homeph'] = "(770) 687-6932"; $toNumber = preg_replace("/[^0-9]/","",$usersRes['homeph']); $toNumber = substr($toNumber, -10); $toNumber = "+1".$toNumber; try{ // Use the client to do fun stuff like send text messages! $resp = $clientT->messages->create( // the number you'd like to send the message to $toNumber, array( // A Twilio phone number you purchased at twilio.com/console 'from' => $usersRes['twilioNum'], // the body of the text message you'd like to send 'body' => $question ) ); //echo $resp; }catch(Exception $e){ //echo $e; } } } } ?>