Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
VersionPress
Tests
Utils
WpVersionComparer
PHP Class VersionPress\Tests\Utils\WpVersionComparer
Datei anzeigen
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