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

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

php 将数组字符串 转入 数组

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:53:18863browse

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