src/Support/Keyword.php
public function searchIn(array $items = [])
    {
        if (\is_null($slug = $this->slug)) {
            return \array_search($this->value, $items);
        }

        return \array_search($slug, $items);
    }
public function searchIn(array $items = [])
    {
        if (\is_null($slug = $this->slug)) {
            return \array_search($this->value, $items);
        }

        return \array_search($slug, $items);
    }
public function searchIn ( array $ items = [ ] ) { if ( \ is_null ( $ slug = $ this -> slug ) ) { return \ array_search ( $ this -> value , $ items ) ; } return \ array_search ( $ slug , $ items ) ; }
Search slug in given items and return the key.

@param  array  $items

@return mixed
Search slug in given items and return the key .