The "array_find_dim" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | array | The index of a previously-created array to search |
val | any | The value to search for |
#
DescriptionSearches a multidimensional array for the given value and returns the dimension in which it exists, or -1
if the value is not found in the array. If the input is not an array, but happens to match the search value regardless, 0
will be returned instead.