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:

SplObjectStorage::offsetExists

(PHP 5 >= 5.3.0, PHP 7) Checks whether an object exists in the storage public bool SplObjectStorage::offsetExists ( object $object ) Checks whether an object exists in the storage. Note: SplObjectStorage::offsetExists() is an alias of SplObjectStorage::contains(). Parameters: object The object to look for. Returns: Returns TRUE if the obj

SplObjectStorage::next

(PHP 5 >= 5.1.0, PHP 7) Move to the next entry public void SplObjectStorage::next ( void ) Moves the iterator to the next object in the storage. Returns: No value is returned. Examples: SplObjectStorage::next() example <?php $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $s->attach($o1, "

SplObjectStorage::key

(PHP 5 >= 5.1.0, PHP 7) Returns the index at which the iterator currently is public int SplObjectStorage::key ( void ) Returns the index at which the iterator currently is. Returns: The index corresponding to the position of the iterator. Examples: SplObjectStorage::key() example <?php $s = new SplObjectStorage();

SplObjectStorage::getInfo

(PHP 5 >= 5.3.0, PHP 7) Returns the data associated with the current iterator entry public mixed SplObjectStorage::getInfo ( void ) Returns the data, or info, associated with the object pointed by the current iterator position. Returns: The data associated with the current iterator position. Examples: SplObjectStorage::getInfo() exa

SplObjectStorage::getHash

(PHP 5 >= 5.4.0, PHP 7) Calculate a unique identifier for the contained objects public string SplObjectStorage::getHash ( object $object ) This method calculates an identifier for the objects added to an SplObjectStorage object. The implementation in SplObjectStorage returns the same value as spl_object_hash(). The storage object will never contain more than one object with the same identifier. As such, it can be us

SplObjectStorage::detach

(PHP 5 >= 5.1.0, PHP 7) Removes an object from the storage public void SplObjectStorage::detach ( object $object ) Removes the object from the storage. Parameters: object The object to remove. Returns: No value is returned. Examples: SplObjectStorage::detach() example

SplObjectStorage::current

(PHP 5 >= 5.1.0, PHP 7) Returns the current storage entry public object SplObjectStorage::current ( void ) Returns the current storage entry. Returns: The object at the current iterator position. Examples: SplObjectStorage::current() example <?php $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass;

SplObjectStorage::count

(PHP 5 >= 5.1.0, PHP 7) Returns the number of objects in the storage public int SplObjectStorage::count ( void ) Counts the number of objects in the storage. Returns: The number of objects in the storage. Examples: SplObjectStorage::count() example <?php $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new Std

SplObjectStorage::contains

(PHP 5 >= 5.1.0, PHP 7) Checks if the storage contains a specific object public bool SplObjectStorage::contains ( object $object ) Checks if the storage contains the object provided. Parameters: object The object to look for. Returns: Returns TRUE if the object is in the storage, FALSE otherwise.