SplObjectStorage::unserialize

(PHP 5 >= 5.2.2, PHP 7) Unserializes a storage from its string representation public void SplObjectStorage::unserialize ( string $serialized ) Unserializes storage entries and attach them to the current storage. Parameters: serialized The serialized representation of a storage. Returns: No value is returned.

SplObjectStorage::setInfo

(PHP 5 >= 5.3.0, PHP 7) Sets the data associated with the current iterator entry public void SplObjectStorage::setInfo ( mixed $data ) Associates data, or info, with the object currently pointed to by the iterator. Parameters: data The data to associate with the current iterator entry. Returns: No value is returned.

SplObjectStorage::valid

(PHP 5 >= 5.1.0, PHP 7) Returns if the current iterator entry is valid public bool SplObjectStorage::valid ( void ) Returns if the current iterator entry is valid. Returns: Returns TRUE if the iterator entry is valid, FALSE otherwise. Examples: SplObjectStorage::valid() example <?php $s = new SplObjectStorage(); $o

SplObjectStorage::serialize

(PHP 5 >= 5.2.2, PHP 7) Serializes the storage public string SplObjectStorage::serialize ( void ) Returns a string representation of the storage. Returns: A string representing the storage. Examples: SplObjectStorage::serialize() example <?php $s = new SplObjectStorage; $o = new StdClass; $s[$o] = "data"; echo $s-&

AppendIterator::append

(PHP 5 >= 5.1.0, PHP 7) Appends an iterator public void AppendIterator::append ( Iterator $iterator ) Appends an iterator. Parameters: iterator The iterator to append. Returns: No value is returned. Examples: AppendIterator::append() example <?php $array_a = new A

SplObjectStorage::removeAllExcept

(PHP 5 >= 5.3.6, PHP 7) Removes all objects except for those contained in another storage from the current storage public void SplObjectStorage::removeAllExcept ( SplObjectStorage $storage ) Removes all objects except for those contained in another storage from the current storage. Parameters: storage The storage containing the elements to retain in the current storag

SplObjectStorage::rewind

(PHP 5 >= 5.1.0, PHP 7) Rewind the iterator to the first storage element public void SplObjectStorage::rewind ( void ) Rewind the iterator to the first storage element. Returns: No value is returned. Examples: SplObjectStorage::rewind() example <?php $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdCl

SplObjectStorage::offsetSet

(PHP 5 >= 5.3.0, PHP 7) Associates data to an object in the storage public void SplObjectStorage::offsetSet ( object $object [, mixed $data = NULL ] ) Associate data to an object in the storage. Note: SplObjectStorage::offsetSet() is an alias of SplObjectStorage::attach(). Parameters: object The object to associate data with. data

SplObjectStorage::removeAll

(PHP 5 >= 5.3.0, PHP 7) Removes objects contained in another storage from the current storage public void SplObjectStorage::removeAll ( SplObjectStorage $storage ) Removes objects contained in another storage from the current storage. Parameters: storage The storage containing the elements to remove. Returns: No value is returned.

SplObjectStorage::offsetGet

(PHP 5 >= 5.3.0, PHP 7) Returns the data associated with an object public mixed SplObjectStorage::offsetGet ( object $object ) Returns the data associated with an object in the storage. Parameters: object The object to look for. Returns: The data previously associated with the object in the storage. Exception: