• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

ListToArray

Synopsis

                     ListToArray(list [, delimiters])

Converts a ColdFusion list to a one-dimensional array. An optional delimiter can be specified if the list is delimited with a character other than the comma (the default). Here’s an example that converts a list containing the days of the week to a one-dimensional array:

<cfset MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday">
<cfset MyArray = ListToArray(MyList)>
   
<cfdump var="#MyArray#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint