Java Create New Object Array Php Use For Loop