Trying to learn how to translate from the human translation examples.
From: Machine Translation
Suggest a better translation
Quality:
From professional translators, enterprises, web pages and freely available translation repositories.
a domain név: php.net
/ / get host name from url preg_match( "/ ^(http:\ / \/) ?([^\ / ]+) / i", "http: / /www.php.net / index.html", $matches); $host = $matches[2]; / / get last two segments of host name preg_match(" / [^\.\ / ]+\ .[^\.\ / ]+$ / ",$host,$matches); echo "domain name is: ".$matches[0] ."\n";