Parse_str parse serialize generated string, because the form has multiple selection of forms, parsing when the value of the multi-select form into a two-dimensional array, parsed into an array of this character, how to do?
The image is the Parse_str parsed array
The error of the report is: Array to string conversion
Reply content:
Parse_str parse serialize generated string, because the form has multiple selection of forms, parsing when the value of the multi-select form into a two-dimensional array, parsed into an array of this character, how to do?
The image is the Parse_str parsed array
The error of the report is: Array to string conversion
This is because the checked query string format is inconsistent, and the RFC standard does not specify what format the query string should be, so the various languages have their own format for one-key multivalued, such as jquery (or JS series): rzqd=网络搜索&rzqd=自己
or rzqd=网络搜索,自己
, but the format of PHP is rzqd[]=网络搜索&rzqd[]=自己
. I think you either directly on the form, or you write a function to parse it, it is not complicated anyway.