I have this code...
...and the type of $date keeps appearing as string, and I have no clue how.
Does anyone have an idea? My dates keep appearing as 0000-00-00 00:00:00 in the database.
Code:
date_default_timezone_set('Europe/London');
$date = date('Y-d-m h:i:s', time());
echo gettype($date);
...and the type of $date keeps appearing as string, and I have no clue how.
Does anyone have an idea? My dates keep appearing as 0000-00-00 00:00:00 in the database.