note 15513 deleted from function.parse-str by jimw

From: Date: Sat, 08 Dec 2001 21:17:47 +0000
Subject: note 15513 deleted from function.parse-str by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22211@lists.php.net to get a copy of this message
Spaces in field names are converted to underscores. This is done both when parsing into an array or registering as variables. Ie: $mystr="My+Field=abcd1234&My+Other+Field=sdfdsfds"; parse_str($mystr); echo $My_Field; Or $mystr="My+Field=abcd1234&My+Other+Field=sdfdsfds"; parse_str($mystr,$myarray); echo $myarray["My_Field"]; Hope this saves someone a couple minutes of prolonged pain.

« previous php.notes (#22211) next »