You are here

public function RequestParameters::toQueryString in reCAPTCHA 6.2

Same name and namespace in other branches
  1. 8.2 recaptcha-php/src/ReCaptcha/RequestParameters.php \ReCaptcha\RequestParameters::toQueryString()
  2. 7.2 recaptcha-php/src/ReCaptcha/RequestParameters.php \ReCaptcha\RequestParameters::toQueryString()

Query string representation for HTTP request.

Return value

string Query string formatted parameters.

File

recaptcha-php/src/ReCaptcha/RequestParameters.php, line 99

Class

RequestParameters
Stores and formats the parameters for the request to the reCAPTCHA service.

Namespace

ReCaptcha

Code

public function toQueryString() {
  return http_build_query($this
    ->toArray(), '', '&');
}