i am writing a REST webservice and would like to know how can i handle put or delete argument is PHP.
i am taking the inputs as following,
$input = file_get_contents('php://input');
echo $input;
output = imei=1234567890&email=hello%40gmail1.com
how can i access these variables like
echo $_POST['imei'];
echo $_POST['email'];
echo $_GET['imei'];
echo $_GET['email'];
i found there is nothing like $_PUT or $_DELETE in php to handle the input params. what is the way to get this ?