public static function compareVersions($a, $b)
    {
        $versionPos = max(count($a), count($b));
        while (count($a) < $versionPos) {
            $a[] = 0;
        }
        while (count($b) < $versionPos) {
            $b[] = 0;
        }

        for ($v = 0; $v < count($a); $v++) {
            if ((int)$a[$v] < (int)$b[$v]) {
                return '<';
            }
            if ((int)$a[$v] > (int)$b[$v]) {
                return '>';
            }
        }
        return '=';
    }
public static function compareVersions($a, $b)
    {
        $versionPos = max(count($a), count($b));
        while (count($a) < $versionPos) {
            $a[] = 0;
        }
        while (count($b) < $versionPos) {
            $b[] = 0;
        }

        for ($v = 0; $v < count($a); $v++) {
            if ((int)$a[$v] < (int)$b[$v]) {
                return '<';
            }
            if ((int)$a[$v] > (int)$b[$v]) {
                return '>';
            }
        }
        return '=';
    }
public static function compareVersions ( $ a , $ b ) { $ versionPos = max ( count ( $ a ) , count ( $ b ) ) ; while ( count ( $ a ) < $ versionPos ) { $ a [ ] = 0 ; } while ( count ( $ b ) < $ versionPos ) { $ b [ ] = 0 ; } for ( $ v = 0 ; $ v < count ( $ a ) ; $ v ++ ) { if ( ( int ) $ a [ $ v ] < ( int ) $ b [ $ v ] ) { return '<' ; } if ( ( int ) $ a [ $ v ] > ( int ) $ b [ $ v ] ) { return '>' ; } } return '=' ; }
Comparing versions.
@param array $a
@param array $b
@return string
@since 0.2
Comparing versions .