php寫檔fwrite用法

$datpath="_/0/";
$f=fopen($datpath,"w+");
fwrite($f,$main);
fclose($f);

喜歡的話也可以分享