PHP Knowledge Base
Loop through an associative array
$array__month_days_per_month = array(1=>31, 2=>28, 3=>31); foreach ($array__month_days_per_month as $monthNum => $monDays) { echo "$monthNum - $monDays<br>"; }
$array__month_days_per_month = array(1=>31, 2=>28, 3=>31); foreach ($array__month_days_per_month as $monthNum => $monDays) { echo "$monthNum - $monDays<br>"; }