The SplObjectStorage class provides a map from objects to data or, by ignoring data, an object set. This dual purpose can be useful in many cases involving the ...
Missing: url | Show results with:url
Returns true if the object is in the storage, false otherwise. Examples ¶. Example #1 SplObjectStorage::contains() example. <?php $o1 ...
Missing: class. | Show results with:class.
People also ask
What is SplObjectStorage?
What is stdClass object in PHP?
How to declare an object in PHP?
Returns the current storage entry. Parameters ¶. This function has no parameters. Return Values ¶. The object at the current iterator position.
Missing: class. | Show results with:class.
Associates data, or info, with the object currently pointed to by the iterator. Parameters ¶. info. The data to associate with the current iterator entry.
Missing: class. | Show results with:class.
Returns if the current iterator entry is valid. Parameters ¶. This function has no parameters. Return Values ¶. Returns true if the iterator entry is valid ...
Missing: class. | Show results with:class.
Returns a string representation of the storage. Parameters ¶. This function has no parameters. Return Values ¶. A string representing the storage. Examples ¶.
Missing: class. | Show results with:class.
Counts the number of objects in the storage. Parameters ¶. mode. If the optional mode parameter is set to COUNT_RECURSIVE (or 1), ...
Missing: class. | Show results with:class.
Adds an object inside the storage, and optionally associate it to some data. Parameters ¶. object. The object to add.
Missing: class. | Show results with:class.
SplObjectStorage::offsetGet ; Parameters ¶. object. The object to look for. ; Return Values ¶. The data previously associated with the object in the storage.
Missing: class. | Show results with:class.
Returns the index at which the iterator currently is. Parameters ¶. This function has no parameters. Return Values ¶. The index corresponding to the position of ...
Missing: class. | Show results with:class.