No, but you can use a more general 'for' or 'while' loop and set up any
constraints your heart desires:

$start = time();
$limit = 10; # 10 second time-out
while ($start + $limit <= time() && list($key, $value) = each($whatever)){
}

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Evan Nemerson <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 1:01 AM
Subject: timeouts on loops


> Is there a way to put a timeout on each iteration of a loop (foreach, to
be
> more specific)?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to