View Single Post
  #9 (permalink)  
Old 10-27-04, 01:55 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
What Sandal said is correct except that in your code it will look like this:

foreach($subs as $key => $value){
mail($value,$subject,$message,$headers);
};
no.. no... no.. sandal is right. php control 'foreach' with syntax "foreach($myArray as $myValue)" will return successive $myValue which each is the value of $myArray and not the array key. (please read the php doc or php source for this.. )

anyway, to use semicolon to send mail to some persons is +1 for me..
__________________
just an ignorant noob with moronic solution...
Reply With Quote