$array->[0]->x=1; $array->[0]->y=5; $array->[1]->x=6; $array->[1]->y=2;