header('Content-type: text/javascript');
//消除Resource interpreted as Script but transferred with MIME type text/html警告
json_encode(数组对象);
//字符串转换成json对象
json_decode( $Contents)
//转成数组对象
echo $_GET['callback'] .'('. json_encode(json_encode("字符串对象")) .');';
//返回执行体
其实类似于
js 里面也可以用eval_r(字符串);
苗景云的博客
<< 向左走,向右走 >>
<< 向左走,向右走 >>