php數組轉換字符串,字符串在轉換成數組

$arr=array("1","2",array("3","4")); $str=var_export($arr, true); file_put_contents("test.php",$str); $str = file_get_contents("test.php"); eval("\$arr = ".$str.'; '); print_r($arr);
相關文章
相關標籤/搜索