引:http://yulei568.blog.163.com/blog/static/135886720109291469196/
要把一些配置数组写到文件中去。
没有想到var_export()这个函数。
还在手动拼写呢
// if(is_array($config) && $config){
// $str = '';
// foreach($config as $k => $v){
// $str .= '"'.$k.'"=>"'.$v.'",';
// }
// $str = rtrim($str,',');
// }
// $str = 'array('.$str.');'
换成var_export()后
$str = var_export($config,true);