标签:pre 数组 name turn 字符 logs export open class
生成的代码 data/ss.php
<?php return array ( ‘name‘ => ‘1111‘, ‘title‘ => ‘2222‘, );
php代码
$str = "<?php\nreturn \n"; $myfile = fopen("data/ss.php", "w") or die("Unable to open file!"); fwrite($myfile, $str); fwrite($myfile, var_export($data, true)); fwrite($myfile, ‘;‘); fclose($myfile);
标签:pre 数组 name turn 字符 logs export open class
原文地址:http://www.cnblogs.com/wesky/p/7475022.html