On 2011-07-13 09:54, Karl DeSaulniers wrote:


$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com , ema...@domain.com, "

$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

Reply via email to