Skip to main content

array_search

Function array_search 

Source
pub fn array_search<'a, X: Extension>(
    needle: &Value<X>,
    haystack: &'a Array<X>,
    strict: bool,
) -> Option<KeyRef<'a>>
Expand description

array_search($needle, $haystack, $strict): the key of the first match.