SplDoublyLinkedList::unserialize

(PHP 5 >= 5.4.0)

SplDoublyLinkedList::unserializeUnserializes the storage

Description

public void SplDoublyLinkedList::unserialize ( string $serialized )

Unserializes the storage, from SplDoublyLinkedList::serialize().

Warning

This function is currently not documented; only its argument list is available.

Parameters

serialized

The serialized string.

Return Values

No value is returned.

See Also

Коментарии

$a = new SplDoublyLinkedList;
$arr=[1,2,3,4,5,6,7,8,9];

for($i=0;$i<count($arr);$i++){
    $a->add($i,$arr[$i]);
}

$serialize=serialize($a);

echo $serialize;

echo PHP_EOL,PHP_EOL;

$unserialze=unserialize($serialize);

print_r($unserialze);
2017-07-11 20:52:55
http://php5.kiev.ua/manual/ru/spldoublylinkedlist.unserialize.html

    Поддержать сайт на родительском проекте КГБ