How To The Write `structKeyArray( structure )` Function In ColdFusion?
Description:-
This is used to get structure keys as an array.
structKeyArray( structure );
This function returns an array of the given structure.
Member Function Syntax:-
structure.keyArray( );
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( structKeyArray( test ) );
</cfscript>
Result:-
[ a, b, c ];
An example of using a member function:-
<cfscript>
    test = {
        "a" : 100,
        "b" : 200,
        "c" : 300
    };
    writeDump( test.keyArray( ) );
</cfscript>
Result:-
[ a, b, c ];
Here we convert a structure key's into an array.
