Re: Getting domain out of a URL {SOLVED]

From: Date: Wed, 17 Jan 2007 23:48:13 +0000
Subject: Re: Getting domain out of a URL {SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-247280@lists.php.net to get a copy of this message
On Wednesday 17 January 2007 06:16 pm, Jay Blanchard wrote: > [snip] > Why not use explode with the period (.) as the delimiter? > > $url = ranchy.stuff.com and other junk"; > $boom = explode(".", $url); > print_r($boom); > > $boom is now an array containing 'ranchy', 'stuff', 'com and other > junk' Sigh. I have used that code just above the area I have been working on . . . it's been a long day. Thanks - it does the job very well! Andre

« previous php.general (#247280) next »