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..
