-
Notifications
You must be signed in to change notification settings - Fork 1
ServerRequest: getCookieParams Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\ServerRequest
Extends Request.
Retrieves cookies sent by the client to the server.
-
return
array
Example:
$cookieParams = $serverRequests->getCookieParams();
print(print_r($cookieParams, true));
/* Outputs:
Array
(
[foo] => bar
)
*/
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.