PHPで配列をファイルに保存する

PHPコード:

echo '<pre>’; print_r($_SERVER);

$code = var_export($_SERVER, true);
$code = implode(“\r", array('<?php’, “return {$code};"));
$code = str_replace(' ', “\t", $code);

file_put_contents('config.php’, $code);

PHP

Posted by arkgame