Re: Dots and spaces in variable names are converted to underscores.
| From: | Dave Ingram | Date: | Thu, 21 Jan 2010 16:27:08 +0000 |
| Subject: | Re: Dots and spaces in variable names are converted to underscores. | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46854@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
> For BC, I suppose PHP could have *both* 'a.b' and 'a_b'
+1 as a PHP user. For BC, I guess this should go without changing the
current precedence rules too, annoying though it might be.
At the moment: "?a_b=foo&a.b=bar" gives $_GET === array('a_b' =>
'bar')
As I understand it with this proposal: "?a_b=foo&a.b=bar" would give
$_GET === array('a_b' => 'bar', 'a.b' => 'bar')
It would be nicer for it not to lose the original assignment (a_b =>
foo) though, perhaps via an INI setting.
Dave