$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