public static function matchTags(array $tags1, array $tags2)
    {
        if (count(self::diffTags($tags1, $tags2)) == 0 &&
            count(self::diffTags($tags2, $tags1)) == 0)
            return true;

        return false;

    }
public static function matchTags(array $tags1, array $tags2)
    {
        if (count(self::diffTags($tags1, $tags2)) == 0 &&
            count(self::diffTags($tags2, $tags1)) == 0)
            return true;

        return false;

    }
public static function matchTags ( array $ tags1 , array $ tags2 ) { if ( count ( self :: diffTags ( $ tags1 , $ tags2 ) ) == 0 && count ( self :: diffTags ( $ tags2 , $ tags1 ) ) == 0 ) return true ; return false ; }
Determines if the tags in both arrays are a match

@param array $tags1 An array of Tag objects
@param array $tags2 An Array of Tag objects

@return boolean true if both array contain the same tags
Determines if the tags in both arrays are a match