读取文件 php逐行读取文件范例代码
php逐行读取文件范例代码 [代码片段(11行)]
<?php $file = fopen("welcome.txt", "r") or exit("Unable to open file!"); //Output a line of the file until the end is reached while(!feof($file)) { echo fgets($file). "<br />"; } fclose($file); ?>
精彩图集
精彩文章