Last active
August 25, 2016 09:52
-
-
Save pranid/14f2dfed5e4c611d39dc47fb4b706579 to your computer and use it in GitHub Desktop.
Get API related form data 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 | |
// use this to capture data that not from GET OR POST | |
// refer http://stackoverflow.com/questions/19004783/reading-json-post-using-php | |
$json = file_get_contents('php://input'); | |
$obj = json_decode($json); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment