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

search for in the

SplObjectStorage::getInfo> <SplObjectStorage::current
Last updated: Fri, 14 Aug 2009

view this page in

SplObjectStorage::detach

(PHP 5 >= 5.1.0)

SplObjectStorage::detachRetire un objet du stockage

Description

public void SplObjectStorage::detach ( object $object )

Retire un objet du stockage.

Liste de paramètres

object

L'objet à retirer.

Valeurs de retour

Aucune valeur n'est retournée.

Exemples

Exemple #1 Exemple avec SplObjectStorage::detach()

<?php
$o 
= new StdClass;
$s = new SplObjectStorage();
$s->attach($o);
var_dump(count($s));
$s->detach($o);
var_dump(count($s));
?>

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

int(1)
int(0)

Voir aussi



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

SplObjectStorage::getInfo> <SplObjectStorage::current
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites