Re: HowTo Convert a String to an Array?

2010-06-02 Thread Larry Lyons
You could try the .split method. Assuming here that the string is in a variable, just use variableName.split("&") - assuming that & is the deliimiter you want to use. Since this uses the .split java method, you can use multiple characters as a delimiter. You can also use a CFLib function which

Re: HowTo Convert a String to an Array?

2010-06-02 Thread Tom Chiverton
On Thursday 20 May 2010 06:22:14 you wrote: > Given the following string in Coldfusion: > > ul[0][id]=main1 &ul[0][children][0][id]=child2 &ul[0][children][0][class]= > &ul[1][id]=main3 &ul[2][id]=main4 &ul[3][id]=main5 I'm looking for help > understanding how to use the string above to create

HowTo Convert a String to an Array?

2010-05-20 Thread Brett H
Given the following string in Coldfusion: ul[0][id]=main1 &ul[0][children][0][id]=child2 &ul[0][children][0][class]= &ul[1][id]=main3 &ul[2][id]=main4 &ul[3][id]=main5 I'm looking for help understanding how to use the string above to create an array, which will then allow be to later build out