groupes[] = $groupe; } function checkAllGroupes() { foreach ($groupes as $key => $groupe) $this->checkGroupe($key); } function checkGroupe($id) { if (is_a($this->groupes[$id], "Groupe")) { if ($this->groupes[$id]->) { } } $groupes[$id]-> } } ?>