Clearing an Array
Posted: Sun Oct 13, 2002 2:35 pm
I am working on a loop that lists email addresses for each row. right now i have the following code to explode the email addresses :
it works fine, but i each row it just adds to the $emailArray and multiplies and conquers
Any Ideas on how to make it clear the array each time?
Code: Select all
// Email Filter
!$email?$emailArray = "":$emailArray = explode(", ",$email);
if ($email != "") {
while (list($index,$email) = each ($emailArray))
{
$Emails .= "<a href="mailto:$email">$email</a> ";
} // while
} else {
$Emails = "No Email Listed";
}