php obtient tout l'objet en tant que tableau
$object = new StdClass;
$object->foo = 1;
$object->bar = 2;
var_dump( (array) $object );
Borma
$object = new StdClass;
$object->foo = 1;
$object->bar = 2;
var_dump( (array) $object );