Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43811 invoked from network); 23 May 2008 14:50:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2008 14:50:06 -0000 X-Host-Fingerprint: 85.207.105.235 235-105-207-85.bluetone.cz Received: from [85.207.105.235] ([85.207.105.235:10257] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/20-35754-999D6384 for ; Fri, 23 May 2008 10:50:05 -0400 Message-ID: <81.20.35754.999D6384@pb1.pair.com> To: internals@lists.php.net Date: Fri, 23 May 2008 16:49:58 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080523-0, 23.05.2008), Outbound message X-Antivirus-Status: Clean X-Posted-By: 85.207.105.235 Subject: Re: PHP6 new syntax use suggestion From: konference@kukulich.net (Jaroslav Hanslik) Astro [GTalk] napsal(a): > $host = parse_url('http://someurl.com'); > $host = $host['host']; You can use this: $host = parse_url('http://someurl.com', PHP_URL_HOST);