This should work: parse_str($example_string, $_GET);
_______________________ Marcus Rasmussen [EMAIL PROTECTED] www.marcusr.dk ------------------------------------------------------------- On 01-04-2003 at 03:20 Jose wrote: ------------------------------------------------------------- > I might be wrong here, but with the code below I would expect $_GET to be > filled and the script to output the next line: > > <?php > $example_string = 'action=kick&item=me'; > parse_str($example_string); > var_dump($_GET); > ?> > > // expected output: > // > // array(2) { ["action"]=> string(4) "kick" ["item"]=> string(2) "me" } > // Forgot to mention what I get. // actual output: // // array(0) { } > Is my assumption wrong? What would be the workaround? > > Thanks, > > Jose > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php