i have a problem when i try to get the object value there's nothing in it. but when i just echo the object , there's no null i dont know how to get that value
if(isset($_POST['submit'])) {
$secret = "6Le3nvgUAAAAAMU0DRNLtvtaIq3h6X9ybEnO_txv";
$captcha = $_POST['g-recaptcha-response'];
$url = 'https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$captcha;
$response = file_get_contents($url);
echo $response;
}
i got response
but when i try to $response-> success . it return null ..