private recaptcha_qsencode ( $data ) : string | ||
$data | - array of string elements to be encoded | |
return | string | - encoded request |
private function recaptcha_qsencode($data)
{
$req = "";
foreach ($data as $key => $value) {
$req .= $key . '=' . urlencode(stripslashes($value)) . '&';
}
// Cut the last '&'
$req = substr($req, 0, strlen($req) - 1);
return $req;
}