ciao,

Codice PHP:
class Pluto
{
    function 
ciao()
    {
         echo 
"ciao";
    }
}

class 
Pippo
{
    private 
$oggetti = Array();
    function 
__construct()
    {
        
$this->oggetti[] = new Pluto();
        
$this->oggetti[] = new Pluto();
        
$this->oggetti[] = new Pluto();
        return 
$this->oggetti;
     }
}

$bam = new Pippo();
$bam[0]->ciao(); 
come faccio a far andare un codice del genere?