📄 function.sqlite-key.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Returns the current row index</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.sqlite-has-prev.html">sqlite_has_prev</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlite-last-error.html">sqlite_last_error</a></div> <div class="up"><a href="ref.sqlite.html">SQLite Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.sqlite-key" class="refentry"> <div class="refnamediv"> <h1 class="refname">sqlite_key</h1> <h1 class="refname">SQLiteResult->key</h1> <p class="verinfo">(PHP 5 >= 5.1.0)</p><p class="refpurpose"><span class="refname">sqlite_key</span> -- <span class="refname">SQLiteResult->key</span> — <span class="dc-title">Returns the current row index</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><b>sqlite_key</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result</tt></span> )</div> <p class="para rdfs-comment">Object oriented style (method):</p> <div class="classsynopsis"> <div class="ooclass"><b class="classname">SQLiteResult</b></div> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="function.key.html" class="function">key</a></b></span> ( <span class="methodparam">void</span> )</div> </div> <p class="para"> <b>sqlite_key()</b> returns the current row index of the buffered result set <i><tt class="parameter">result</tt></i>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">result</tt></i></span> <dd> <p class="para"> The SQLite result resource. This parameter is not required when using the object-oriented method. </p> <blockquote><p><b class="note">Note</b>: This function cannot be used with unbuffered result handles.<br /></p></blockquote> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the current row index of the buffered result set <i><tt class="parameter">result</tt></i>. </p> </div> <div class="refsect1 changelog"> <h3 class="title">ChangeLog</h3> <p class="para"> <table class="informaltable"> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Version</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">5.0.4</td> <td colspan="1" rowspan="1" align="left"> Prior to PHP 5.0.4, <b>sqlite_key()</b> was only able to be called as a method on a <a href="ref.sqlite.html#sqlite.class.sqliteresult" class="link">SQLiteResult</a> object, not procedurally. </td> </tr> </tbody> </colgroup> </table> </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.sqlite-next.html" class="function" rel="rdfs-seeAlso">sqlite_next()</a></li> <li class="member"><a href="function.sqlite-current.html" class="function" rel="rdfs-seeAlso">sqlite_current()</a></li> <li class="member"><a href="function.sqlite-rewind.html" class="function" rel="rdfs-seeAlso">sqlite_rewind()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sqlite-has-prev.html">sqlite_has_prev</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlite-last-error.html">sqlite_last_error</a></div> <div class="up"><a href="ref.sqlite.html">SQLite 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 + -