Php Foreach Array Example In Python