note 36770 deleted from function.parse-url by didou
| From: | didou@php.net | Date: | Sat, 03 Feb 2007 03:10:32 +0000 |
| Subject: | note 36770 deleted from function.parse-url by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122625@lists.php.net to get a copy of this message | ||
Note Submitter: sjt at 5jt dot com
----
It gets better...
parse_str($_SERVER['QUERY_STRING']);
though you might flinch at random names from the URI query string showing up as variables. Safer to
secure them in a hash table, eg
parse_str($_SERVER['QUERY_STRING'],$vars);
$lang = $vars['lang'];
echo "Your language is $lang";
sjt