check if a foreach loop has successfully run
| From: | Jule Slootbeek | Date: | Tue, 25 Jun 2002 14:18:39 +0000 |
| Subject: | check if a foreach loop has successfully run | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103777@lists.php.net to get a copy of this message | ||
Hey list,
How do i check if my script has successfully run through an entire foreach() loop
do i just go
if (foreach ($answer as $a) { echo $a })
{
return TRUE;
} else {
return FALSE;
}
thanks in advance.
Jule
--
Jule Slootbeek
jslootbeek@clarku.edu
http://blindtheory.cjb.net