<?php
$secret = "";
$api = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret&response=" . $captcha . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
if ($api.success == true) {
    //başarılı
} else {
    //başarısız
}

?>