Skip to content

Instantly share code, notes, and snippets.

@nicholasareed
Created December 12, 2011 01:11
Show Gist options
  • Save nicholasareed/1463981 to your computer and use it in GitHub Desktop.
Save nicholasareed/1463981 to your computer and use it in GitHub Desktop.
PHP Set JSON Response Header
<?php
header('Content-Type: application/json');
echo json_encode($key_pairs_here);
exit;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment