note 106772 deleted from function.parse-url by tularis

From: Date: Mon, 05 Dec 2011 21:27:55 +0000
Subject: note 106772 deleted from function.parse-url by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184921@lists.php.net to get a copy of this message
Note Submitter: mark at shust dot com Reason: bad code ---- Typo on last post in getRootDomain function, should be: public function getRootDomain($domain) { $domain = explode('.', $domain); $tld = array_pop($domain); $name = array_pop($domain); $domain = "$name.$tld"; return $domain; }

« previous php.notes (#184921) next »