Php Loop Over Array Javascript Length Method In Json How Would You Represent