note 37185 added to language.variables.external

From: Date: Thu, 06 Nov 2003 09:07:48 +0000
Subject: note 37185 added to language.variables.external
Groups: php.notes 
Request: Send a blank email to php-notes+get-59974@lists.php.net to get a copy of this message
The decision in PHP to translate a query string like: a=2&a=3&a=4 into one single variable a=4 is simply strupid! The "wonderful" hack allowing multiple values to be read only if one uses: a[]=2&a[]=3&a[]=4 is - at first sight - a nice feature but soon become a pain in the a..! In ASP and ASPX the first situation is handled as: a=2,3,4 which is better than the PHP behaviour but still bad (what if your variable values contain commas?). It seems to me that the proper behaviour would be: a=2&a=3&a=4 automatically generates an array with all the variables inside. I know this would require proper error handling but evevy things does anyway! ---- Manual Page -- http://www.php.net/manual/en/language.variables.external.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37185 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37185&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37185&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59974) next »