Php Loop Through Object Array Typescript Download Windows