I was wondering if foreach() works when the array looks like this:
Will foreac
Yes the explanation given by BoltClock is right & i would suggest you to manually try too. You have missed $before array name in the foreach statement
foreach($arr_name as $key=>$value) echo $value ?>