定义和用法rewind() 函数将文件指针的位置倒回文件的开头。 如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。 语法rewind(file)
实例<?php$file = fopen("test.txt","r");//Change position of file pointerfseek($file,"15");//Set file pointer to 0rewind($file);fclose($file);?>
下载地址: PHP rename() 函数 PHP rmdir() 函数 |