Php Loop Through Object Array In Python Definition Range