note 71916 deleted from function.http-build-query by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 13:36:57 +0000 |
| Subject: | note 71916 deleted from function.http-build-query by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189773@lists.php.net to get a copy of this message | ||
Note Submitter: havelka at valka dot cz
----
I think it doesnt :( when processing array let say from MySQL db, where array is list of rows
(column - value), it generates the first "row" without indexes
(post_subject=xxx&post_detail=yyy) while the other rows are indexed well (
1[post_subject]=xxx&1[post_details]=yyy )
this causes confusion when the array is read back from this string (because the first line, without
index is ignored (put to another variable than rest of the array), also count of this array says n+x
(N = amount of rows in the array, X = amount of columns in the first row) which is wrong. The
correct way should look like
0[post_subject]=xxx&0[post_detail]=yyy
for the first entry and then to continue with the rest