把某个值写进文本,并自动创建文本
$jd='测试'; $myfile = fopen("aa.txt", "w") or die("Unable to open file!"); fwrite($myfile,$jd); fclose($myfile);