downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplObjectStorage::valid> <SplObjectStorage::setInfo
[edit] Last updated: Fri, 25 May 2012

view this page in

SplObjectStorage::unserialize

(PHP 5 >= 5.2.2)

SplObjectStorage::unserializeストレージの文字列表現をアンシリアライズする

説明

public void SplObjectStorage::unserialize ( string $serialized )

ストレージのエントリをアンシリアライズし、現在のストレージに追加します。

パラメータ

serialized

ストレージをシリアライズしたもの。

返り値

値を返しません。

例1 SplObjectStorage::unserialize() の例

<?php
$s1 
= new SplObjectStorage;
$s2 = new SplObjectStorage;
$o = new StdClass;
$s1[$o] = "data";

$s2->unserialize($s1->serialize());

var_dump(count($s2));
?>

上の例の出力は、 たとえば以下のようになります。

int(1)

参考



add a note add a note User Contributed Notes SplObjectStorage::unserialize
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites