note 73903 deleted from function.parse-url by nlopess
| From: | nlopess@php.net | Date: | Sun, 18 Mar 2007 12:39:08 +0000 |
| Subject: | note 73903 deleted from function.parse-url by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124566@lists.php.net to get a copy of this message | ||
Note Submitter: alreece45 at yahoo dot com
----
This function replaces new lines and tabs (at least with the path) with a '_' character.
So something like:
<?php
$url = "http://nowhere.com//t
";
$data = parse_url($url);
echo $data['path'];
?>
will output:
'/__'
This is useful if you're reading URLs from a file as you would want to make sure that the
newline character is not passed to the function.