Function __global->version_compare

Definitions

sources_custom/phpstub.php

  • Compares two "PHP-standardsedd" version number strings.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$version1 string required parameter N/A N/A First version number
$version2 string required parameter N/A N/A Second version number
$compare_symbol ?string Null N/A N/A The operator to compare with (null: unified)

Return

  • For unified: -1 if v1<v2, 0 if v1=v2, 1 if v1>v2. Else BINARY or boolean.
  • Type: mixed
  • Set: N/A
  • Range: N/A