Last active
September 11, 2015 22:43
-
-
Save AFelipeTrujillo/1f5a3ee33698d3e5a80f to your computer and use it in GitHub Desktop.
Create a json response with 500 error
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
header('Content-Type: application/json; charset=utf-8', true, 500); | |
print json_encode(array('hasErrorCreate' => true, 'data' => 1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment