version_compare
version_compare
(PHP 4 >= 4.1.0, PHP 5, PHP 7)
version_compare — Compares two "PHP-standardized" version number strings
Description
mixed version_compare ( string $version1 , string $version2 [, string $operator ] )
version_compare() compares two "PHP-standardized" version number strings.
The function first replaces _, - and + with a dot . in the version strings and also inserts dots . before and after any non number so that for example '4.3.2RC1' becomes '4.3.2.RC.1'. Then it compares the parts starting