Yngvarr

Generation

generate functionWed, 22 Mar 2023

domain age

function domain_age($domain) { $whois = new Whois(); $whois_result = $whois->lookup($domain); $registered = $whois_result->createdDate; $now = new DateTime(); $diff = $now->diff($registered); return $diff->y; }

Questions about programming?Chat with your personal AI assistant