21,886
社区成员
发帖
与我相关
我的任务
分享
/**
* 调试用
*
*/
function debug($str)
{
if (is_array($str))
{
$str = '<pre><?php print_r(unserialize(\'' . serialize($str) . '\')); ?></pre>';
}
$str = '<div>' . $str . '<p class="time">' . date('Y-m-d H:i:s', time()) . '</p> </div>' . "\n\t" . file_get_contents('./debug.php');
file_put_contents('./debug.php', $str);
}