Re: PHP6 new syntax use suggestion
| From: | Jaroslav Hanslik | Date: | Fri, 23 May 2008 14:49:58 +0000 |
| Subject: | Re: PHP6 new syntax use suggestion | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37828@lists.php.net to get a copy of this message | ||
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);