Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
php to return JSON objects. Works with jQuery.
<?php
$JSON = '{events:[{title:"title", info:"info"},{title:"title", info:"info"},{title:"title", info:"info"}]}';
header("Content-type: application/json");
echo $_GET['callback']."($JSON);"
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.