Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php convert guzzle response to json

$response = GuzzleHttpget('http://httpbin.org/get');
if ($response->getBody()) {
    echo $response->getBody();
    // JSON string: { ... }
}
Source by docs.guzzlephp.org #
 
PREVIOUS NEXT
Tagged: #php #convert #guzzle #response #json
ADD COMMENT
Topic
Name
9+5 =