note 24529 added to function.time
| From: | kingmundi at hotmail dot com | Date: | Tue, 20 Aug 2002 16:31:46 +0000 |
| Subject: | note 24529 added to function.time | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35257@lists.php.net to get a copy of this message | ||
If you want to have your program
wait for a period of seconds.
//arg is the number of seconds to wait
function wait($arg)
{
$then = time() + $arg;
//echo "then=" . $then . "<br>\n";
while(1)
{
$now = time();
//echo "now=" . $now . "<br>\n";
if($now > $then)
return;
}
}
wait(3);
--
http://www.php.net/manual/en/function.time.php
http://master.php.net/manage/user-notes.php?action=edit+24529
http://master.php.net/manage/user-notes.php?action=delete+24529
http://master.php.net/manage/user-notes.php?action=reject+24529