SplObjectStorage::setInfo
SplObjectStorage::valid
SplObjectStorage
PHP Manual

# SplObjectStorage::unserialize

(PHP 5 >= 5.2.2)

SplObjectStorage::unserialize — Unserializes a storage from its string representation

### 설명

public void SplObjectStorage::unserialize ( string `$serialized` )

Unserializes storage entries and attach them to the current storage.

### 인수

`serialized`

  The serialized representation of a storage.

### 반환값

값을 반환하지 않습니다.

### 예제

Example #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));
?>`

위 예제의 출력 예시:

    int(1)

### 참고

- SplObjectStorage::serialize - Serializes the storage

SplObjectStorage::setInfo
SplObjectStorage::valid
SplObjectStorage
PHP Manual