/** * 添加字符串到文件的代码 * * @param * @author 编程之家 jb51.cc jb51.cc **/ $fp = fopen("filename","a"); if($fp) { fwrite($fp,"aString"); fclose($fp); }