当前位置:首页 > 搜索和 一行行输出 相关的文章

php 读取文件内容并一行行输出

添加日期:2014-08-06 15:01:57 发布:smiling 
<?php 打开文件同时打印文件的每一个字符if($myfile=fopen("data txt","r")){while(!feof($myfile)){$mycharacter=fgetc($myfile); 从文件指针中读取字符print($mycharacter);}fclose($myfile); ...