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

search for in the

SplObjectStorage::valid> <SplObjectStorage::setInfo
[edit] Last updated: Fri, 24 May 2013

view this page in

SplObjectStorage::unserialize

(PHP 5 >= 5.2.2)

SplObjectStorage::unserializeDélinéarise un stockage à partir de sa forme en chaîne

Description

public void SplObjectStorage::unserialize ( string $serialized )

Délinéarise un stockage à partir de sa forme en chaîne.

Liste de paramètres

serialized

La représentation linéarisée d'un stockage.

Valeurs de retour

Aucune valeur n'est retournée.

Exemples

Exemple #1 Exemple avec SplObjectStorage::unserialize()

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

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

var_dump(count($s2));
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

int(1)

Voir aussi



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

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