StructKeyList()
Extracts keys from a struct.
StructKeyList( struct=struct, delimiter=string );
Returns: String
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
- Structures
- StructKeyArray()
- struct.keyList()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)