structFindKey

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

structFindKey(top, value, scope) → returns Array

Argument Reference for the structFindKey function

top

Required: Yes
CFML object (structure or array) from which to start
search. This attribute requires an object, not a name of
an object.

value

Required: Yes
String or a variable that contains one for which to search.

scope

Required: Yes
* one: returns one matching key. Default.
* all: returns all matching keys Values:
  • one
  • all


Fork me on GitHub