Index: reference/spl/splobjectstorage/removeuncommon.xml =================================================================== --- reference/spl/splobjectstorage/removeuncommon.xml (revision 0) +++ reference/spl/splobjectstorage/removeuncommon.xml (revision 0) @@ -0,0 +1,111 @@ + + + + + + SplObjectStorage::removeUncommon + Removes objects not common to both the current storage and another storage from the current storage + + + + &reftitle.description; + + public voidSplObjectStorage::removeUncommon + SplObjectStoragestorage + + + Removes objects not common to both the current storage and another storage from the current storage. + + + + + &reftitle.parameters; + + + + storage + + + The storage containing the uncommon elements to remove. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>SplObjectStorage::removeUncommon</function> example + +attach($a); +$foo->attach($b); + +$bar = new SplObjectStorage; +$bar->attach($b); +$bar->attach($c); + +$foo->removeCommon($bar); +var_dump($foo->contains($a)); +var_dump($foo->contains($b)); +?> +]]> + + &example.outputs.similar; + + + + + + + + + &reftitle.seealso; + + + SplObjectStorage::removeCommon + + + + + + +