방법1 : Value만 가져오는 경우

foreach($array as $value)

방법2 : Key와 Value를 가져오는 경우

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

출처:

https://extbrain.tistory.com/24