<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.quickhashintset.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'quickhashintset.savetostring.php',
    1 => 'QuickHashIntSet::saveToString',
    2 => 'This method returns a serialized version of the set',
  ),
  'up' => 
  array (
    0 => 'class.quickhashintset.php',
    1 => 'QuickHashIntSet',
  ),
  'prev' => 
  array (
    0 => 'quickhashintset.savetofile.php',
    1 => 'QuickHashIntSet::saveToFile',
  ),
  'next' => 
  array (
    0 => 'class.quickhashinthash.php',
    1 => 'QuickHashIntHash',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/quickhash/quickhashintset/savetostring.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="quickhashintset.savetostring" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">QuickHashIntSet::saveToString</h1>
  <p class="verinfo">(PECL quickhash &gt;= Unknown)</p><p class="refpurpose"><span class="refname">QuickHashIntSet::saveToString</span> &mdash; <span class="dc-title">This method returns a serialized version of the set</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-quickhashintset.savetostring-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>QuickHashIntSet::saveToString</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   This method returns a serialized version of the set in the same format that
   <span class="methodname"><a href="quickhashintset.loadfromstring.php" class="methodname">QuickHashIntSet::loadFromString()</a></span> can read.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-quickhashintset.savetostring-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-quickhashintset.savetostring-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   This method returns a string containing a serialized format of the set.
   Each element is stored as a four byte value in the Endianness that the
   current system uses.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-quickhashintset.savetostring-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-5399">
    <p><strong>示例 #1 <span class="function"><strong>QuickHashIntSet::saveToString()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$set </span><span style="color: #007700">= new </span><span style="color: #0000BB">QuickHashIntSet</span><span style="color: #007700">( </span><span style="color: #0000BB">1024 </span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$set</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exists</span><span style="color: #007700">( </span><span style="color: #0000BB">4 </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$set</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">( </span><span style="color: #0000BB">4 </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$set</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exists</span><span style="color: #007700">( </span><span style="color: #0000BB">4 </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$set</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">( </span><span style="color: #0000BB">4 </span><span style="color: #007700">) );<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$set</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">saveToString</span><span style="color: #007700">() );<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>



</div><?php manual_footer($setup); ?>