-
Notifications
You must be signed in to change notification settings - Fork 1
ServerRequest: getParsedBody Example
Terry L edited this page Jun 20, 2020
·
5 revisions
Shieldon\Psr7\ServerRequest
Extends Request.
Retrieve any parameters provided in the request body.
-
return
null|array|object
Example:
// Typically, $parsedBody is equal to $_POST superglobal.
$parsedBody = $serverRequest->getParsedBody();
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.