(PHP 5 >= 5.2.2)
SplObjectStorage::unserialize — Unserializes a storage from its string representation
$serialized
)Unserializes storage entries and attach them to the current storage.
serialized
The serialized representation of a storage.
Hiçbir değer dönmez.
Örnek 1 SplObjectStorage::unserialize() example
<?php
$s1 = new SplObjectStorage;
$s2 = new SplObjectStorage;
$o = new StdClass;
$s1[$o] = "data";
$s2->unserialize($s1->serialize());
var_dump(count($s2));
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
int(1)