RE: [PHP] Domain Name ?

From: Date: Thu, 01 Apr 2004 09:58:01 +0000
Subject: RE: [PHP] Domain Name ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182003@lists.php.net to get a copy of this message
The easy way... $domain = "http://www.foo.com"; $domain = explode('.', $domain); $foo = $domain['1']; -----Original Message----- From: Dave Carrera [mailto:dave@ephgroup.com] Sent: Thursday, April 01, 2004 1:30 AM To: php-general@lists.php.net Subject: [PHP] Domain Name ? Hi List, I asked this a while back but have lost the replies :-( $domain = "http://www.foo.com"; I want to strip our every thing and be left with only "foo" to use in my function. I think its multiple str_replace but have forgotten how to do it. Thank you in advance for any help Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.645 / Virus Database: 413 - Release Date: 28/03/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#182003) next »