<?php
$c = file_get_contents(‘./cities_v2.json‘);
$s = "<?php return " . var_export(json_decode($c, true), true) . ";?>";
file_put_contents(‘./cities_config.php‘, $s);
?>
时间: 2024-11-09 00:50:36
<?php
$c = file_get_contents(‘./cities_v2.json‘);
$s = "<?php return " . var_export(json_decode($c, true), true) . ";?>";
file_put_contents(‘./cities_config.php‘, $s);
?>