【发布时间】:2019-07-12 03:19:47
【问题描述】:
我想在这个网站上接收应用程序。所以船需要得到乌兹别克斯坦这个词。但它不起作用!
$json = file_get_contents("https://restcountries.eu/rest/v2/name/uzbekistan");
$json = json_decode ($json);
$res = $json->name;
if(isset($text1)){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"$res" //there is 'Uzbekistan'
]);
}
【问题讨论】:
-
什么是
$text1? -
输入文字@text1