-
Notifications
You must be signed in to change notification settings - Fork 1
Response: getReasonPhrase Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Message\Response
Extends Message.
Gets the response reason phrase associated with the status code.
-
return
string
Example:
$reasonPhrase = $response->getReasonPhrase();
echo $reasonPhrase
// Outputs: OK
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.