note 76978 added to function.parse-str

From: Date: Wed, 08 Aug 2007 18:09:41 +0000
Subject: note 76978 added to function.parse-str
Groups: php.notes 
Request: Send a blank email to php-notes+get-129351@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 24.165.159.155 ---- Manual Page -- http://www.php.net/manual/en/function.parse-str.php Edit -- https://master.php.net/note/edit/76978 Del: integrated -- https://master.php.net/note/delete/76978/integrated Del: useless -- https://master.php.net/note/delete/76978/useless Del: bad code -- https://master.php.net/note/delete/76978/bad+code Del: spam -- https://master.php.net/note/delete/76978/spam Del: non-english -- https://master.php.net/note/delete/76978/non-english Del: in docs -- https://master.php.net/note/delete/76978/in+docs Del: other reasons-- https://master.php.net/note/delete/76978 Reject -- https://master.php.net/note/reject/76978 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129351) next »