src/Nomnom/UnitResolver.php
public static function unitsAreDifferent($first, $second)
    {
        return
            (preg_match(UnitResolver::SI_PATTERN, $first) && preg_match(UnitResolver::IEC_PATTERN, $second)) ||
            (preg_match(UnitResolver::IEC_PATTERN, $first) && preg_match(UnitResolver::SI_PATTERN, $second));
    }
public static function unitsAreDifferent($first, $second)
    {
        return
            (preg_match(UnitResolver::SI_PATTERN, $first) && preg_match(UnitResolver::IEC_PATTERN, $second)) ||
            (preg_match(UnitResolver::IEC_PATTERN, $first) && preg_match(UnitResolver::SI_PATTERN, $second));
    }
public static function unitsAreDifferent ( $ first , $ second ) { return ( preg_match ( UnitResolver :: SI_PATTERN , $ first ) && preg_match ( UnitResolver :: IEC_PATTERN , $ second ) ) || ( preg_match ( UnitResolver :: IEC_PATTERN , $ first ) && preg_match ( UnitResolver :: SI_PATTERN , $ second ) ) ; }
Check if two units are in the same
family

@param string $first
@param string $second
@return bool
Check if two units are in the same family