I have been spending houre on this and I can t come up with a solution. I have added a time and date form to one of my sites for an alert count down where the user sets up a countdown to an event. The form results are like this. I cant figure out the loop statement can someone help.
Code:
$a = array ( [0] => date1 ,[1] => date2 ,[2] => date3 )
$b array ( [0] => time1 ,[1] => time2 ,[2] => time3 )
$c = array ( [0] =>date1 time1 ,[1] =>date2 time2 ,[2] =>date3 time3 ) //new combined array
looking for the output like this 2009-05-15 23:59:59
date1 time1
date2 time2
date3 time3