Zend\Version\Version::compareVersion
Compare the specified Zend Framework version string $version with the current Zend\Version\Version::VERSION of Zend Framework.
Signature
public function compareVersion(string
$version )
Parameters
$version
— string- A version string (e.g. "0.7.1").
Returns
- int
- -1 if the $version is older,
0 if they are the same, and +1 if $version is newer.