Re: query strings and other delights
| From: | Nathan Rixham | Date: | Thu, 13 Jan 2011 17:22:31 +0000 |
| Subject: | Re: query strings and other delights | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310738@lists.php.net to get a copy of this message | ||
kbailey@howlermonkey.net wrote:
Your turn! :-Djust in case I totally misunderstood, and you simply have the string and want to rip out the component parts of the query string, then: <?php
$querystring = parse_url($url, PHP_URL_QUERY);
parse_str($querystring, $data);
print_r( $data );
Or similar, watch out for parse_str though as it'll swap out spaces and . for _ - which is nice.