problem with parse_str

From: Date: Wed, 25 Jan 2006 17:56:49 +0000
Subject: problem with parse_str
Groups: php.general 
Request: Send a blank email to php-general+get-229256@lists.php.net to get a copy of this message
version: 4.3.2 the example from: http://de2.php.net/manual/en/function.parse-str.php $str = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0]; // foo bar echo $output['arr'][1]; // baz produces: value&arr[]=foo bar&arr[]=bazvalue&arr[]=foo bar&arr[]=baz or slightly modified: for first: value&arr[]=foo bar&arr[]=baz for arr[0]: for arr[1]: which isn't the intended behavior :/ any ideas? greetings dalini

« previous php.general (#229256) next »