|
SplObjectStorage::attachAdds an object in the storage Beschreibung
public void SplObjectStorage::attach
( object
$object
[, mixed $data = NULL
] )Adds an object inside the storage, and optionally associate it to some data. Parameter-Liste
RückgabewerteEs wird kein Wert zurückgegeben. Beispiele
Beispiel #1 SplObjectStorage::attach example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: NULL string(5) "hello" Changelog
Siehe auch
|