note 34247 added to function.parse-url
| From: | robemerick at vegasidx dot com | Date: | Sat, 19 Jul 2003 17:52:21 +0000 |
| Subject: | note 34247 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52389@lists.php.net to get a copy of this message | ||
All keys for the associative array returned by parse_url are NOT created. Only the keys with
relevant values are created.
Example:
$temp_array = parse_url(http://www.vegasidx.com);
will yield 2 array elements
$temp_array['scheme'])
$temp_array[host])
The other array elements such as path, query, port, etc, are NOT set to empty values but rather they
are not created. This kicks out error messages if you have your error reporting set to report all
errors.
Hopefully they will change this function to create all keys.
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34247
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34247&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34247&report=yes