- http_build_query: documentation ( source)
<?PHP
$url = 'http://www.google.com/recaptcha/api/verify';
$data['privatekey'] = "6Lfzs_ESAAAAANS4DbMX4f5yLILbOxInzzZil2FE";
$data['remoteip'] = "192.168.0.1";
$data['challenge'] = "c";
$data['response'] = "r";
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);