略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SplDoublyLinkedList::unserialize

2024-04-28

SplDoublyLinkedList::unserialize

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

SplDoublyLinkedList::unserializeUnserializes the storage

说明

public SplDoublyLinkedList::unserialize(string $data): void

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

警告

本函数还未编写文档,仅有参数列表。

参数

data

The serialized string.

返回值

没有返回值。

参见

add a noteadd a note

User Contributed Notes 1 note

up
-1
lincoln dot du dot j at gmail dot com
4 years ago
$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);

官方地址:https://www.php.net/manual/en/spldoublylinkedlist.unserialize.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3