$date = getdate(mktime(0, 0, 0, 5, 27, 2006)); echo $date['weekday']; //Saturday (correct)
$date = getdate(gmmktime(0, 0, 0, 5, 27, 2006)); echo $date['weekday']; //Friday (incorrect)
What makes mktime() and gmmktime() different? I know gmmktime() is based on GMT time, but I don't understand why that makes a difference since the user is providing the date and time. Maybe I don't make sense. Let me know.