StructKeyList()

Extracts keys from a struct.

StructKeyList( struct=struct, delimiter=string );

Returns: String

Argument Description Default
struct
struct, required

Structure from which to extract a list of keys.

Alias: structure, object

delimiter
string, optional

String that separates keys in list. Default: comma.

Alias: delimiters

,

Usage Notes

For unsorted structs, Adobe returns a text sorted list of keys, for performance reasons, Lucee simply returns the raw sort order

Examples

Non-Member Function

animals = {
	cow: "moo",
	pig: "oink",
	cat: "meow",
	bird: "chirp"
};

// StructKeyList(animals) animalList = StructKeyList(animals);

echo(animalList);

See also