I have an array holds email addresses, and using a function to validate the email addresses here is the code:
If (isset($Email))
{
foreach ($Email as $value)
{
if (MailVal($value, 1))
{
echo "error message";
echo "Go Back and check";
exit;
}
The above function works fine, but I have problem when I try to loop throught the array at later stage like this:
if (isset($Email))
{
while(list($key,$value) = @each($Email)) {
echo "Key is $key Value is $value";
}
}
I don't get any output...does any1 know why???
OR is there a way to duplicate array???
Many Thanks