- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
- Parse error: syntax error, unexpected '{' in /in/96jEk on line 19
Process exited with code 255.
<?php
echo $phpdate = strtotime('-1 day');
echo PHP_EOL;
$mysqldate = date('Y-m-d H:i:s', $phpdate);
$phpdate = time();
echo $last_midnight = $phpdate - ($phpdate % (24*60*60));
if ($last_access >= $last_midnight)
{
print "Today";
}
elseif ($last_access >= ($last_midnight-(24*60*60))
{
print "Yesterday";
}
?>