Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
VersionPress
Tests
Utils
WpVersionComparer
PHP Class VersionPress\Tests\Utils\WpVersionComparer
Mostrar archivo
Open project: versionpress/versionpress
Class Usage Examples
Public Methods
Method
Description
compare
(
string
$v1
,
string
$v2
) :
integer
Compares two WP versions.
Private Methods
Method
Description
toSemVer
(
$v1
)
Method Details
compare()
public
static
method
Returns: negative number for $v1 < $v2, positive number for $v1 > $v2 and zero for $v1 == $v2.
public
static
compare
(
string
$v1
,
string
$v2
) :
integer
$v1
string
$v2
string
return
integer