代码示例:(标识:demo_php_jsonp)
<?php
$myJSON = '{ "name":"Bill Gates", "age":62, "city":"Seattle" }';
 
echo "myFunc(".$myJSON.");";
?>
运行结果: