$str = '<?php return ' . var_export(json_decode($json, true), true) . ';';
file_put_contents('./config_xxx.php', $str);
die;

相关文章: