On 2011-07-13 09:54, Karl DeSaulniers wrote:
$cc = "[email protected] ,[email protected],[email protected] , [email protected], "
$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

