note 76978 deleted from function.parse-str by sobak
| From: | sobak@php.net | Date: | Thu, 17 Nov 2016 07:54:59 +0000 |
| Subject: | note 76978 deleted from function.parse-str by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207145@lists.php.net to get a copy of this message | ||
Note Submitter: kermodebear at kermodebear dot org
----
An old post from several years ago mentions that variable names cannot have a dot. They also cannot
have a space. Spaces are automatically replaced with an underscore.
The following:
parse_str("My Value=Something", $result);
Will result in:
$result['My_Value'] = 'Something'
Although I understand why it is done, I still feel that this is unintuitive behavior.