Last active
August 29, 2015 14:17
-
-
Save davekobrenski/0f6fe7b26d37649b1867 to your computer and use it in GitHub Desktop.
PHP header() and Content-Type for JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/json'); | |
//do json-ish things here... | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment