On Tue, 2004-02-24 at 12:51, 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'].
You need to look up how to use explode[1], my guess is you don't want to
use it at all here. In fact, implode[2] may be exactly what you are
looking for.
Regards,
Adam
[1] http://www.php.net/explode
[2] http://www.php.net/implode
--
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php