当我发送阿拉伯字母时,有人可以帮助我,为什么我会收到问号?
这是我的代码:
<?php
$ctx = stream_context_create(array(
'http' => array(
'timeout' => 1
)
));
$fra = $_GET["f"];
$til = explode('-',$_GET["t"]);
$text = urlencode($_GET['m']);
foreach($til as $til ) {
file_get_contents("http://www.example.com/api/sendSms.php?
apiKey=xxxxxxxxx&charset=UTF-8&senderId=$fra&mobile=$til&message=$text", 0, $ctx
);
}
?>