Lucee Function Reference

Function STRUCTFINDKEY

Searches recursively through a substructure of nested arrays,
structures, and other elements, for structures whose values
match the search key in the value parameter.

Example

structfindkey(struct Top,string Key,[string Scope]):array

Category

struct,find

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
Top struct  Yes   object from which to start search. This parameter requires an object, not a name of an object.  
Key string  Yes    
Scope string  No one - one (default): returns one matching key.
  • all: returns all matching keys