Php Loop Over Array Javascript Length Of Array In C