arrayToStruct

Transform the array to a struct, the index of the array is the key of the struct

arrayToStruct(array) → returns struct

Member Function Syntax

array.toStruct()

This function requires Lucee. Not supported on Adobe ColdFusion.

arrayToStruct Argument Reference

array array
Required

Examples sample code invoking the arrayToStruct function


Convert an array to a struct using arrayToStruct()

arrayToStruct(["a","b"]);

Fork me on GitHub