How to access first level keys of a 2d array with a foreach loop? [duplicate]

You can access your array keys like so:

foreach ($array as $key => $value)

Leave a Comment