string(12) "1111" ["resourceCode"] => string(13)&nbs"/> string(12) "1111" ["resourceCode"] => string(13)&nbs">
Home >Backend Development >PHP Tutorial > php 数组字符,转换数组解决方法
php 数组字符,转换数组
下面是数组输出后的字符串。我想把它转换成数组
array(9) {
["productCode"] => string(12) "1111"
["resourceCode"] => string(13) "222"
["userCode"] => string(9) "333"
["tvCode"] => string(8) "444"
["extraInfo"] => string(4) "null"
["orderResult"] => string(1) "1"
["subId"] => string(2) "-1"
["payment"] => string(1) "1"
["_URL_"] => array(2) {
[0] => string(3) "test"
[1] => string(14) "callback"
}
}
eval('$dd='.$result.';');
但是一直报错。汗。