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

search for in the

SplObjectStorage::attach> <SplObjectStorage
[edit] Last updated: Thu, 23 May 2013

view this page in

SplObjectStorage::addAll

(PHP 5 >= 5.3.0)

SplObjectStorage::addAllAjoute tous les objets d'un autre stockage

Description

public void SplObjectStorage::addAll ( SplObjectStorage $storage )

Ajoute tous les objets de l'ensemble storage.

Liste de paramètres

storage

Le stockage à importer.

Valeurs de retour

Aucune valeur n'est retournée.

Exemples

Exemple #1 Exemple avec SplObjectStorage::addAll()

<?php
$o 
= new StdClass;
$a = new SplObjectStorage();
$a[$o] = "hello";

$b = new SplObjectStorage();
$b->addAll($a);
echo 
$b[$o]."\n";
?>

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

hello

Voir aussi



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

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