泽黻鲨: Dump

泽黻鲨 镳孱狃噻箦 耱囵 戾蝾 var_export(), 觐蝾瘥 恹忸滂 桦 忸玮疣弪 桧蝈痫疱蜩痼屐铄 耱痤觐忸 镳邃耱噔脲龛 镥疱戾眄铋.

function dump($var)
{

      $bt = debug_backtrace();
      $bt = $bt[0];
      $dRoot = $_SERVER["DOCUMENT_ROOT"];
      $dRoot = str_replace("/", "\\", $dRoot);
      $bt["file"] = str_replace($dRoot, "", $bt["file"]);
      $dRoot = str_replace("\\","/",$dRoot);
      $bt["file"] = str_replace($dRoot, "",$bt["file"]);
      $time = date("H-i-s");
      $fp = fopen($_SERVER["DOCUMENT_ROOT"].'/log_'.$time.'_'.$bt["line"].'.html', 'w');
      $mytext = 'html 觐';
      fwrite($fp, $mytext); 
      fclose($fp); 
}

翌 襦禧 HTML-觐
Dump html
玎牮

悟镳噔栩 玎怅

篷腓 黩-蝾 镱 礤 蜞, 桦 蔓 麇-蝾 礤 筲屦屙. 袜镳桁屦 耢脲 耦狁蜮屙眍 骅珥. 橡铖蝾 磬骒栩 磬 腩泐蜩 襦轵 镱怛铕栩 镱稃蜿. 愉圜!