note 14607 deleted from function.parse-url by jimw
| From: | jimw@php.net | Date: | Fri, 21 Dec 2001 00:40:46 +0000 |
| Subject: | note 14607 deleted from function.parse-url by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23667@lists.php.net to get a copy of this message | ||
Here's a sample off parse_url with all arrays!
<?
$base_url = "ftp://anonymous:user@ftp.php.net:21/pub/?foo#bar";
$url = parse_url($base_url);
print "BASE URL: <b>$base_url</b><br><br>";
print "SCHEME: <b>$url[scheme]</b><br>";
print "HOST: <b>$url[host]</b><br>";
print "USER: <b>$url[user]</b><br>";
print "PASSWORD: <b>$url[pass]</b><br>";
print "PATH: <b>$url[path]</b><br>";
print "PORT: <b>$url[port]</b><br>";
print "FRAGMENT: <b>$url[fragment]</b><br>";
print "QUERY: <b>$url[query]</b><br>";
?>