Created
December 21, 2013 15:58
-
-
Save ryanburgess/8071218 to your computer and use it in GitHub Desktop.
Return a JSON object in PHP
This file contains hidden or 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
| // Create JSON object | |
| echo json_encode( | |
| array("title" => $title, | |
| "description" => $description, | |
| "keywords" => $keywords) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment