string(12) "1111"   ["resourceCode"] => string(13)&nbs"/>  string(12) "1111"   ["resourceCode"] => string(13)&nbs">

Home >Backend Development >PHP Tutorial > php 数组字符,转换数组解决方法

php 数组字符,转换数组解决方法

WBOY
WBOYOriginal
2016-06-13 12:33:37808browse

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.';');
但是一直报错。汗。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn