Php Foreach Key Value Multidimensional Array In Numpy