How To The Write `structValueArray( structure )` Function In lucee?
Description:-
This is used to get structure values as an array.
structValueArray( structure );
This function returns an array of the given structure.
Attributes:-
structure:-
This is a required argument, a structure variable values will be converted into an array.
Example:-
<cfscript>
test = {
"a" : 100,
"b" : 200,
"c" : 300
};
writeDump( structValueArray( test ) );
</cfscript>
Result:-
[ 100, 200, 300 ];
Here we convert a structure value into an array, this function is supported in Lucee 5.3.8 and higher, This is not supported in ColdFusion.