Molto probabilmente non ho capito cosa vuoi fare, xò non sarebbe molto più semplice:

Codice PHP:
$idxxx = new myf;
$idxxx->myfunc();

class 
myf{

    function 
myfunc(){
        
$thearray[1][id]    = "1";
        
$thearray[1][foo]    = "primo";
        
$thearray[2][id]    = "2";
        
$thearray[2][foo]    = "secondo";
        
$thearray[3][id]    = "3";
        
$thearray[3][foo]    = "terzo";

        
$idx = new parsing;

        
$idx->pa($thearray);

    }
}

class 
parsing{

    function 
pa($thearray){

        
$newstyle $thearray;

print_r($newstyle);

        return 
$newstyle;
    }
}

?>