Skip to content

Instantly share code, notes, and snippets.

@imjjss
imjjss / gist:5559431
Created May 11, 2013 09:28
time counter with user input as start
list($hours, $minutes, $seconds) = explode(':', $_POST['time']);
$seconds = $hours * 3600 + $minutes * 60 + $seconds;
for ($i = $seconds; $i > 0; $i--)
{
echo $i;
sleep(1);
flush();
}