Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 11960

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Fetches a result row as an associative or numerically indexed array or both</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sqlite3result.columntype.html">SQLite3Result::columnType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sqlite3result.finalize.html">SQLite3Result::finalize</a></div>
 <div class="up"><a href="class.sqlite3result.html">SQLite3Result</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sqlite3result.fetcharray" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SQLite3Result::fetchArray</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0)</p><p class="refpurpose"><span class="refname">SQLite3Result::fetchArray</span> &mdash; <span class="dc-title">
   Fetches a result row as an associative or numerically indexed array or both
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sqlite3result.fetcharray-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>SQLite3Result::fetchArray</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = SQLITE3_BOTH</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Fetches a result row as an associative or numerically indexed array or both.
   By default, fetches as both.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sqlite3result.fetcharray-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">mode</code></em></span>
     <dd>

      <p class="para">
       Controls how the next row will be returned to the caller. This value
       must be one of either <em>SQLITE3_ASSOC</em>,
       <em>SQLITE3_NUM</em>, or <em>SQLITE3_BOTH</em>.
       <ul class="itemizedlist">
        <li class="listitem">
         <p class="para">
          <em>SQLITE3_ASSOC</em>: returns an array indexed by column
          name as returned in the corresponding result set
         </p>
        </li>
        <li class="listitem">
         <p class="para">
          <em>SQLITE3_NUM</em>: returns an array indexed by column
          number as returned in the corresponding result set, starting at
          column 0
         </p>
        </li>
        <li class="listitem">
         <p class="para">
          <em>SQLITE3_BOTH</em>: returns an array indexed by both
          column name and number as returned in the corresponding result set,
          starting at column 0
         </p>
        </li>
       </ul>
      </p>
     </dd>

    </dt>

   </dl>

  </p>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-sqlite3result.fetcharray-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a result row as an associatively or numerically indexed array or
   both. Alternately will return <strong><code>FALSE</code></strong> if there are no more rows.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sqlite3result.columntype.html">SQLite3Result::columnType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sqlite3result.finalize.html">SQLite3Result::finalize</a></div>
 <div class="up"><a href="class.sqlite3result.html">SQLite3Result</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>