主页
PHP
PHP fseek() 函数
demo_func_filesystem_fseek
运行 ❯
×
更改方向
保存代码
更改主题
<?php $file = fopen("test.txt","r"); // Read first line echo fgets($file); // Move back to beginning of file fseek($file,0); fclose($file); ?>
Hello, this is a test file.