(PHP 5 >= 5.1.0, PHP 7)
Adds an object in the storage
public void SplObjectStorage::attach ( object $object [, mixed $data = NULL ] )
Adds an object inside the storage, and optionally associate it to some data.
Parameters:
object
The object to add.
data
The data to associate with the object.
Returns:
No va