src/Mobileka/MosaicArray/MosaicArray.php
public function hasIntersections(array $array, $strict = false, $returnIntersection = false)
    {
        foreach ($this->target as $element) {
            if (in_array($element, $array, $strict)) {
                return $returnIntersection ? $element : true;
            }
        }

        return false;
    }
public function hasIntersections(array $array, $strict = false, $returnIntersection = false)
    {
        foreach ($this->target as $element) {
            if (in_array($element, $array, $strict)) {
                return $returnIntersection ? $element : true;
            }
        }

        return false;
    }
public function hasIntersections ( array $ array , $ strict = false , $ returnIntersection = false ) { foreach ( $ this -> target as $ element ) { if ( in_array ( $ element , $ array , $ strict ) ) { return $ returnIntersection ? $ element : true ; } } return false ; }
Determine if two arrays have at least a single matching element

@param  array $array
@param  bool  $strict
@param  bool  $returnIntersection
@return mixed
Determine if two arrays have at least a single matching element