如何在PHP'iyas'中使用Json

" {"status":200,"respSentence" 11 \:"respSentence"}"` is not valid json. Use some online sites to validate your json and try like this,

$json = '{"status":200,"respSentence" :"iyas"}';
$array = json_decode($json, true); 
echo $array ['respSentence'];

You can try using file_get_contents and json_decode PHP functions

$url = "http://simsimi.com/........";
$data = file_get_contents($url);
$json = json_decode($data, true);
echo $json ['respSentence'];

hope it helps