Php Loop Through Multidimensional Array In Typescript Vs C