if the input of the $event_Startdate is 2003-06-15, why doesn't the output of
echo "$tdate";
give June
$smonth = explode('-', $event_Startdate);
$ai = $smonth[1];
$month = array ("0", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$tdate = $month['$ai'];