Andy Jarrett // Code. Develop. Manage.

CF Array = Java ArrayList

Mike Nimer has posted a comment which i thought would be good to share on Ryan Guills blog about how CF Arrays are basically Java ArrayLists. This was to demonstrate a bascis array find instead of converting an array to a list then doing a listFindNoCase:
<cfset myList = "mike,bob,john">
<cfset a = listToArray(myList)>
<cfoutput> #a.contains("bob")# - #a[a.indexof("bob") + 1]# </cfoutput>

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️