Yngvarr

Generation

generate functionSun, 19 Mar 2023

domain tdl

function tld($domain) { $pieces = explode('.', $domain); $tld = array_pop($pieces); return $tld; } tld('www.example.com');

Questions about programming?Chat with your personal AI assistant