I am trying to declare HTTP PUT variable in php. This is my code:
<?php ${"_" . $_SERVER['REQUEST_METHOD']} = /* What should be here? */; ?> I tried var_dump($_SERVER) but it does not contain the data sent using ajax request. I am sure there is no problem with $.ajax().
${"_PUT"}="hi"; var_dump($_PUT);