I am using the Slim framework to develop my rest API. I am having problems with the PUT request. I want to access variables sent from the client on the server side.
$app->put('post/:pid', function ($pid) {
//how to access other data sent from the client?
}
Refer the code below:
The variable is the form of array at $var