I'm trying to effectively echo the date every 1 second following a sleep(1) However I get the error
Cannot redeclare date();
Here is my function:
function date()
{
echo date('d/m/Y - G:i a');
sleep(1);
}
then on the page I've just got
<?php date();?>
What am I doing wrong ?