<snip> --- Matt Matijevich <[EMAIL PROTECTED]> wrote: > http://www.php.net/rtrim
rtrim() trims whitespace, not commas. Hope that helps. Chris </snip> string rtrim ( string str [, string charlist]) there is a second optional paremeter you can add to rtrim rtrim($var,','); will take any trailing commas off of the end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php