Re: query strings and other delights

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kbailey@xxxxxxxxxxxxxxxx wrote:
Your turn! :-D

just 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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux