|
Posted by Chris Kay on 04/18/05 15:11
use substr($recipients,0,1);
to remove the last char
and ereg_replace(","," ,",$recipients);
to add the spaces
Hope this helps
CK
On Mon, Apr 18, 2005 at 12:05:42PM +0100, Ross wrote:
> I have a large group of email addesses serperated by commas. I need to trim
> off the very last comma
>
> $recipients = jim@email.com,pat@email.com,kevin@email.com,
>
>
> Also how would I add a space after every comma? to give
>
> jim@email.com, pat@email.com, kevin@email.com
>
>
> many thanks,
>
> Ross
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
[Back to original message]
|