Q:

Create object list using php

array of items convert into object lists : 
[ Object {
          id=0,
          label="Myriel",
          group=1
          },
 Object  { 
         id=1,
         label="Napoleon",
         group=1},
         ....
         ....     
         ]

create object list using php

A:

Something like this ?
<?php

$Objects = array(
'one' => array(
    'Id' => '0',
    'Label' => 'Myriel',
    'Group' => '1'
    ),

'two' => array(
    'Id' => '1',
    'Label' => 'Napoleon',
    'Group' => '1'        
)

);

$R = json_decode(json_encode($Objects));

echo $R->one->Label; //Would show Myriel

