SplDoublyLinkedList::serialize

(PHP 5 >= 5.4.0)

SplDoublyLinkedList::serializeSerializes the storage

Description

public string SplDoublyLinkedList::serialize ( void )

Serializes the storage.

Warning

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

Parameters

This function has no parameters.

Return Values

The serialized string.

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:22
http://php5.kiev.ua/manual/ru/spldoublylinkedlist.serialize.html

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