looks like it returns www in the host array a bit silly when i need just the
bits afterwards to do a gethostbyname

-----Original Message-----
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:41 AM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_replace question

--- electroteque <[EMAIL PROTECTED]> wrote:
> how could i remove http://www. ot of a url string using

No need to reinvent the wheel for this. Just use parse_url() instead:



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to