Chris, thanks that works perfectly

-----Original Message-----
From: Chris Boget [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 11:50 AM
To: James Johnson; [EMAIL PROTECTED]
Subject: Re: [PHP] Array to List


> Coming from ColdFusion, this is difficult. CF has an ArrayToList() 
> function. I can't find anything similar in PHP.

implode();

> I'm building a list from an array with the following code, but it puts 
> a trailing "," and I need to remove it.

[snip]

$campusList = implode( ', ', $_POST['campus'] );

Simple as that.
Read more about arrays here:

http://www.php.net/manual/en/ref.array.php

Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to