IcuVersion

IcuVersion

class IcuVersion

Facilitates the comparison of ICU version strings.

Methods

static bool compare(string $version1, string $version2, string $operator, int|null $precision = null)

Compares two ICU versions with an operator.

static string|null normalize(string $version, int|null $precision)

Normalizes a version string to the number of components given in the parameter $precision.

Details

static bool compare(string $version1, string $version2, string $operator, int|null $precision = null)

Compares two ICU versions with an operator.

This method is identical to {@link version_compare()}, except