note 750 deleted from function.serialize by john
| From: | john@php.net | Date: | Wed, 20 Nov 2002 02:57:52 +0000 |
| Subject: | note 750 deleted from function.serialize by john | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39726@lists.php.net to get a copy of this message | ||
I have been struggling with passing arrays and objects as form variables and/or query strings and
have noted some things which seem to be (unfortunately) true:
1) passing arrays or objects as query strings after serializing/urlencoding passes the exact same
string when using forms and when using query strings, but the results are not the same. When using
forms the string passed decodes and deserializes properly for arrays, but the query string
counterpoint fails. The passed string serializes into an array, but the elements are not accessible,
at least not in a standard way. e.g. echo"$passed_array[index or key]" gives an error
message about scalars used as arrays.