So I’m running this to retrieve my POST data:
$jsonString = file_get_contents('php://input');
If I go to print out the $jsonString, I get the results like so:
Something=Value&OtherThing=Value&Etc=Yougetmydrift
Now in the past I’ve been able to do this:
$object = json_decode($jsonString);
$something = $object->Something;
echo $something; // would print 'Value'
But I’m currently experiencing this not working. I’m working with the Android SDK and php://input on the back end seems to be returning nothing. Does anyone know why this is?
I think you just want: