note 107972 deleted from wrappers by danbrown

From: Date: Thu, 10 May 2012 18:01:50 +0000
Subject: note 107972 deleted from wrappers by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187705@lists.php.net to get a copy of this message
Note Submitter: Rakesh Verma [rakeshnsony at gmail dot com] ---- /**********************************/ Example JSON Request: { "username" : "rakeshnsony", "password" : "abcdefg" } /**********************************/ <?php //To access json format data $requestBody = file_get_contents('php://input'); $requestBody = json_decode($requestBody); echo "username is: ".$requestBody->username; echo "<br /><br />"; echo "password is: ".$requestBody->password;

« previous php.notes (#187705) next »