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
Wanna help me out?  Like Music?  Buy a CD:
Volunteer a little time:
----- Original Message -----
From: Evan Nemerson <[EMAIL PROTECTED]>
Newsgroups: php.general
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
> more specific)?

PHP General Mailing List (
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