for($z=0;$z<count($recipient);$z++)
{ mail($recipient[$z],$subject,$message,$headers); }

What is the difference between this code and using a "foreach" command?

Nothing, really. Using a foreach() simply means you don't have to keep up with the $z count variable...


foreach($recipient as $email)
{ mail($email,$subject,$message,$headers); }

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to