Search Results

  1. 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 from left to right. If a part contains special version strings these are handled in the following ...

    • Getopt

      Parameters ¶ short_options Each character in this string...

    • Getmyuid

      getmyuid (PHP 4, PHP 5, PHP 7, PHP 8) getmyuid — Gets PHP...

    • Getlastmod

      Gets time of last page modification If you use...

    • Getrusage

      In a web environment where you have long running apache...

  2. 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 from left to right. If a part contains special version strings these are handled in the following order: any string not found in this list < dev < alpha = a < beta = b < RC ...

  3. version_compare 15 nov. 2018 21 fois (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) version_compare — Compare deux chaînes de version au format des versions PHP

  4. The version_compare function compares two version strings and returns the comparison result. Let's look at its usage with examples.

  5. Jan 16, 2026 · In software development, versioning is a critical aspect of managing releases, ensuring compatibility, and communicating updates to users. Whether you’re building a plugin, a library, or a full-fledged application, there will often be moments when you need to compare version strings to determine compatibility (e.g., "Is the user’s PHP version ≥ 8.0?" or "Does this plugin work with CMS ...

  6. PHP Editor Review - Php Manual Function version-compare : PHP Developer, PHP Editors and PHP IDE list, biggest Php Editor and IDE list on the net. All Php Editors and IDEs are fully reviewed.

  7. People also ask

  8. Examples of version_compare. Info and examples on version_compare PHP Function