Get domain name from url
$url = trim($url); $url = preg_replace(“/^(http:\/\/)*(www.)*/is”, “”, $url); $url = preg_replace(“/\/.*$/is”, “”, $url); return $url; Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over…
$url = trim($url); $url = preg_replace(“/^(http:\/\/)*(www.)*/is”, “”, $url); $url = preg_replace(“/\/.*$/is”, “”, $url); return $url; Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over…