Php Loop Through Object Array In Typescript W3schools