php fgets() 读文本文件
php fgets() 读文本文件 fgets方法的签名:string fgets (int filepointer, int length)[代码片段(8行)]
fgets方法的签名: string fgets (int filepointer, int length)
php
<?
$fh = fopen('data.txt', 'r');
while (! feof($fh)) :
$line = fgets($fh, 4096);
print $line.'<br>';
endwhile;
fclose($fh);
?>
精彩图集
精彩文章