主页
PHP
PHP fgets() 函数
demo_func_filesystem_fgets2
运行 ❯
×
更改方向
保存代码
更改主题
<?php $file = fopen("test.txt","r"); while(! feof($file)) { echo fgets($file). "
"; } fclose($file); ?>
Hello, this is a test file.
There are three lines here.
This is the last line.