<cfloop index=thisItem list="#category#">
        #thisItem#<br>
</cfloop> 

-----Original Message-----
From: nicolai bass dh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 11:07 AM
To: CF-Talk
Subject: Explode a string to single values

Hi,

i´m a CF newbie and i have a question:

I want to explode a variable into the single values. For example:
<cfset category="one,two,three">
I want to known the single values, seperated by "," and want to place them in 
an array.

I know the PHP function explode(). Is there a similar function in CF?

Thanks a lot & with best regards.

Nic.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286946
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to