public function getParametersFromResponse(ResponseInterface $response)
    {
        $contents = $response->getBody()->getContents();

        $parameters = [];

        parse_str($contents, $parameters);

        return $parameters;
    }
public function getParametersFromResponse(ResponseInterface $response)
    {
        $contents = $response->getBody()->getContents();

        $parameters = [];

        parse_str($contents, $parameters);

        return $parameters;
    }
public function getParametersFromResponse ( ResponseInterface $ response ) { $ contents = $ response -> getBody ( ) -> getContents ( ) ; $ parameters = [ ] ; parse_str ( $ contents , $ parameters ) ; return $ parameters ; }
Get parameters from response.

@param \Psr\Http\Message\ResponseInterface $response

@return array
Get parameters from response .