Created
August 28, 2017 06:20
-
-
Save khanhtdbse/79de47cd99c18422cf7f2f519c85c617 to your computer and use it in GitHub Desktop.
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'); | |
$id = $_GET['id']; | |
echo json_encode([ | |
'id' => $id, | |
'content' => "Some content in article #{$id} that is work offline", | |
'title' => "The offline title #{$id}" | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment