⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.dba-fetch.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Fetch data specified by key</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.dba-exists.html">dba_exists</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dba-firstkey.html">dba_firstkey</a></div> <div class="up"><a href="ref.dba.html">DBA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.dba-fetch" class="refentry"> <div class="refnamediv">  <h1 class="refname">dba_fetch</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">dba_fetch</span> &mdash; <span class="dc-title">Fetch data specified by key</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">string</span> <span class="methodname"><b><b>dba_fetch</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$key</tt></span>   , <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$handle</tt></span>   )</div>   <div class="methodsynopsis dc-description">    <span class="type">string</span> <span class="methodname"><b><b>dba_fetch</b></b></span>     ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$key</tt></span>    , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$skip</tt></span>    , <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$handle</tt></span>    )</div>  <p class="para rdfs-comment">   <b>dba_fetch()</b> fetches the data specified by   <i><tt class="parameter">key</tt></i> from the database specified with   <i><tt class="parameter">handle</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">key</tt></i></span>     <dd>      <p class="para">       The key the data is specified by.      </p>      <blockquote><p><b class="note">Note</b>:                When working with inifiles this function accepts arrays as keys        where index 0 is the group and index 1 is the value name. See:        <a href="function.dba-key-split.html" class="function">dba_key_split()</a>.       <br />      </p></blockquote>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">skip</tt></i></span>     <dd>      <p class="para">       The number of key-value pairs to ignore when using cdb databases.        This value is ignored for all other databases which do not support       multiple keys with the same name.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">handle</tt></i></span>     <dd>      <p class="para">       The database handler, returned by <a href="function.dba-open.html" class="function">dba_open()</a> or       <a href="function.dba-popen.html" class="function">dba_popen()</a>.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns the associated string if the key/data pair is found, <b><tt>FALSE</tt></b>    otherwise.  </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">4.3</td>       <td colspan="1" rowspan="1" align="left">        The <i><tt class="parameter">skip</tt></i> parameter is available to support         cdb&#039;s capability of multiple keys having the same name.       </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.dba-exists.html" class="function" rel="rdfs-seeAlso">dba_exists()</a></li>    <li class="member"><a href="function.dba-delete.html" class="function" rel="rdfs-seeAlso">dba_delete()</a></li>    <li class="member"><a href="function.dba-insert.html" class="function" rel="rdfs-seeAlso">dba_insert()</a></li>    <li class="member"><a href="function.dba-replace.html" class="function" rel="rdfs-seeAlso">dba_replace()</a></li>    <li class="member"><a href="function.dba-key-split.html" class="function" rel="rdfs-seeAlso">dba_key_split()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.dba-exists.html">dba_exists</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dba-firstkey.html">dba_firstkey</a></div> <div class="up"><a href="ref.dba.html">DBA 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 + -