Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Last active August 29, 2015 14:01
Show Gist options
  • Save wingyplus/bbe131a3b0bd84e572b5 to your computer and use it in GitHub Desktop.
Save wingyplus/bbe131a3b0bd84e572b5 to your computer and use it in GitHub Desktop.
Sample json RESTful request
<?php
header('Content-Type', 'application/json');
echo json_encode([1,2,3]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment