请问有谁知道用CFM如何将字符串,
比如1,2,3$4,5,6$ 转成数组{{1,2,3},{4,5,6}}吗?
谢谢!
------解决方案--------------------------------------------------------
<cfset a = "1,2,3$4,5,6">
<cfset b = listtoarray(a, "$")>
<cfloop from="1" to="#arraylen(b)#" index="key">
<cfset b[key] = listtoarray(b[key])>
</cfloop>
<cfdump var="#b#">