If you want to see the contents of an array, use the print_r function:

http://www.php.net/print_r

HTH!

--Sam



Donpro wrote:
> $emails =
> array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]);
> $addresses = explode(",",$emails); 
> for ($i=0; $i < count($addresses); $i++) {
>    echo $i . ': ' . $addresses[$i] . '<br>';
>    if ($i == count($addresses) - 1)
>       $form['recipient'] .= $addresses[$i];
>    else
>       $form['recipient'] .= $addresses[$i] . ',';
>    }
>    echo 'Recipient = ' . $form['recipient'] . '<br>';
> 
> 
> The output I am receiving is:
> 0: Array
> Recipient = Array
> 
> Obviously, I want to see the output of each array element as well as
> the final contents of $form['recipient']. 
> 
> Thanks in advance,
> Don

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

Reply via email to