I am using Whois Library to get Domain Information . but i just Want to get Domain Expiry Date . When I echo $domain->info();
i get lot of information from domain and also get expire date on 298
line , how can i get only expiry date ?
here is php code
include '../src/Phois/Whois/Whois.php';
$sld = 'xyz.net';
$domain = new Phois\Whois\Whois($sld);
$whois_answer = '<pre>'.$domain->info().'</pre>';
echo $whois_answer;
and after Echo Result is that :
Domain Name:XYZ.NET
Registry Domain ID: 2140087625_DOMAIN_NET-VRSN
Registrar WHOIS Server: whois.PublicDomainRegistry.com
Registrar URL: http://www.publicdomainregistry.com
Updated Date: 2017-07-05T14:07:21Z
Creation Date: 2017-07-05T12:24:22Z
Registry Expiry Date: 2018-07-05T12:24:22Z