Re: Help with String Manipulation

From: Date: Mon, 26 Apr 2004 17:54:54 +0000
Subject: Re: Help with String Manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184684@lists.php.net to get a copy of this message
Hello Nick, Monday, April 26, 2004, 6:52:31 PM, you wrote: NW> $host=parse_url($base_url); NW> $emailaddy="noreply@".$host['host']; NW> Unfortunately it produces: noreply@www.example.com NW> So, what's the best way to make sure i got ONLY the host part? It's actually returned in parse_url: $urlarray = parse_url($base_url); $host = $urlarray['host']; -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#184684) next »