$result]; } } protected static function checkSSL($domain) { $ssl_check = @fsockopen('ssl://' . $domain, 443, $errno, $errstr, 30); $res = !!$ssl_check; if ($ssl_check) { fclose($ssl_check); } return $res; } }