
rudie dirkx - 2007-02-02 07:59:47
parse_url returns an associated array with a key host. This host includes www. if included in the url, but you can easily remove that, ofcourse.
So this probably works:
echo parse_url("http://www.4arab.net/service.html", PHP_URL_HOST);