📄 function.rewind.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Rewind the position of a file pointer</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.rename.html">rename</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.rmdir.html">rmdir</a></div> <div class="up"><a href="ref.filesystem.html">Filesystem Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.rewind" class="refentry"> <div class="refnamediv"> <h1 class="refname">rewind</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">rewind</span> — <span class="dc-title">Rewind the position of a file pointer</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>rewind</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$handle</tt></span> )</div> <p class="para rdfs-comment"> Sets the file position indicator for <i><tt class="parameter">handle</tt></i> to the beginning of the file stream. </p> <blockquote><p><b class="note">Note</b>: If you have opened the file in append ("a" or "a+") mode, any data you write to the file will always be appended, regardless of the file position. <br /> </p></blockquote> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">handle</tt></i></span> <dd> <p class="para"> The file pointer must be valid, and must point to a file successfully opened by <a href="function.fopen.html" class="function">fopen()</a>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.fseek.html" class="function" rel="rdfs-seeAlso">fseek()</a></li> <li class="member"><a href="function.ftell.html" class="function" rel="rdfs-seeAlso">ftell()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.rename.html">rename</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.rmdir.html">rmdir</a></div> <div class="up"><a href="ref.filesystem.html">Filesystem Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -