array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'quickhashintset.savetostring.php', 1 => 'QuickHashIntSet::saveToString', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL quickhash >= Unknown)
QuickHashIntSet::saveToString — This method returns a serialized version of the set
This method returns a serialized version of the set in the same format that QuickHashIntSet::loadFromString() can read.
Esta función no tiene parámetros.
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.
Ejemplo #1 QuickHashIntSet::saveToString() example
<?php
$set = new QuickHashIntSet( 1024 );
var_dump( $set->exists( 4 ) );
var_dump( $set->add( 4 ) );
var_dump( $set->exists( 4 ) );
var_dump( $set->add( 4 ) );
var_dump( $set->saveToString() );
?>