// 数组保存到文件 function arr2file($filename, $arr = '') { if (is_array ( $arr )) { $con = var_export ( $arr, true ); } else { $con = $arr; } $con = "<?php\nreturn $con;\n?>"; // \n!defined('IN_MP') && die();\nreturn $con;\n write_file ( $filename, $con ); }