Return to Snippet

Revision: 37859
at December 18, 2010 15:32 by shanejonas


Initial Code
// Will echo "value1"
parse_str(parse_url('www.test.com/test.php?param1=value1&param2=value2', PHP_URL_QUERY), $query_data);
echo $query_data['param1'];

Initial URL

                                

Initial Description

                                

Initial Title
Get parameter from an URI string in PHP

Initial Tags

                                

Initial Language
PHP