Hi, real quickie guys
I need to turn
http://www.phpbuilder.com/
into....
www.phpbuilder.com
I know there are a few ways but as not done something like this before I thought I'd draw on a little of you're experience rather than experimenting with a half dozen different functions!
Cheers
Nick
Hey,
Use the parse_url() function. It returns an associative array. Example:
$url=parse_url('http://www.php.net/');
$url[scheme] = http $url[host] = www.php.net $url[path] = /
Good luck!
-Jayson
I thought I'd have to spend the next couple of hours messing aound with ereg_replace() or some such!
Thanks