src/Collection/ArrayCollection.php
public function whereIn($key, array $values, bool $strict = true): ArrayCollection
    {
        return $this->filter(function ($item) use ($key, $values, $strict) {
            if (!isset($item[$key])) {
                return false;
            }

            return in_array($item[$key], $values, $strict);
        });
    }
public function whereIn($key, array $values, bool $strict = true): ArrayCollection
    {
        return $this->filter(function ($item) use ($key, $values, $strict) {
            if (!isset($item[$key])) {
                return false;
            }

            return in_array($item[$key], $values, $strict);
        });
    }
public function whereIn ( $ key , array $ values , bool $ strict = true ) : ArrayCollection { return $ this -> filter ( function ( $ item ) use ( $ key , $ values , $ strict ) { if ( ! isset ( $ item [ $ key ] ) ) { return false ; } return in_array ( $ item [ $ key ] , $ values , $ strict ) ; } ) ; }
Creates a filtered collection by key and values

@param mixed $key    The key
@param array $values The values
@param bool  $strict Whether comparison should be strict

@return ArrayCollection
Creates a filtered collection by key and values