1st loop iterates over a months array which are joined as a key .... Browse other questions tagged php foreach while-loop reset or ask your own ...
www.google.com.tw