PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<renamermdir>
Last updated: Mon, 16 Jul 2012

rewind

(PHP 3, PHP 4, PHP 5)

rewind -- 倒回文件指针的位置

说明

bool rewind ( resource handle )

handle 的文件位置指针设为文件流的开头。

如果成功则返回 TRUE,失败则返回 FALSE

文件指针必须合法,并且指向由 fopen() 成功打开的文件。

注: 如果将文件以附加("a")模式打开,写入文件的任何数据总是会被附加在后面,不管文件指针的位置。

参见 fseek()ftell()




<renamermdir>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST