Re: Array to List

From: Date: Mon, 11 Aug 2003 18:49:46 +0000
Subject: Re: Array to List
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159173@lists.php.net to get a copy of this message
> 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

« previous php.general (#159173) next »