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

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

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

WBOY
WBOYOriginal
2016-06-13 11:40:01898browse

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