On 2011-07-13 09:54, Karl DeSaulniers wrote:
$cc = "email1@xxxxxxxxxx ,email2@xxxxxxxxxx,email3@xxxxxxxxxx , email4@xxxxxxxxxx, "
$cc = trim($cc,","); $result = preg_replace('/(\s?)(,)(\s?)/i', ',', $cc); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php