title: How to check if domain has SSL certificate or not?
body: <p>Is is possible to get the details like if a domain (say <code>www.example.com</code>) is HTTPS ready?</p>
  
  <p>I need to validate some URLs, whether they have SSL certificate or not. I know, by using <code>$_SERVER['HTTPS']</code> we can check our server details. but how can I achieve the same for other domains.</p>
  
  <p>Any help would be much appreciated.</p>