逐行读取文件示例

逐行读取示例

<?php
$link=fopen("test.txt","r");
while (!feof($link))
{
    $row=fgets($link);//逐行读取// 输出该行
    echo $row."<br/>";
}
exit();

 

posted @ 2018-03-22 10:40  李照耀  阅读(160)  评论(1编辑  收藏  举报