'test','tes'=>'ff')";//使用return 转成数组$str = eval("return $str;");print_r($str); "/> 'test','tes'=>'ff')";//使用return 转成数组$str = eval("return $str;");print_r($str); ">

Home  >  Article  >  Backend Development  >  php 将数组字符串 转入 数组

php 将数组字符串 转入 数组

WBOY
WBOYOriginal
2016-06-13 11:15:28958browse

php 将数组字符串 转为 数组

php 将数组字符串 转为 数组
?

$str = "array('test'=>'test','tes'=>'ff')";

//使用return 转成数组

$str = eval("return $str;");

print_r($str);

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