Studyon Minte9.com
ZF 1.0

Study

Version



a) VERSION

Zend_Version provides a class constant Zend_Version::VERSION that contains a string identifying the version 
number of your Zend Framework installation. Zend_Version::VERSION might contain "1.7.4", for example. 

<?php
            echo Zend_Version::VERSION; // might display 1.7.4


b) compareVersion()

The static method Zend_Version::compareVersion($version) is based on the PHP function version_compare(). 
This method returns -1 if the specified version is older than the installed Zend Framework version, 0 if they are 
the same and +1 if the specified version is newer than the version of the Zend Framework installation. 

<?php
            $cmp = Zend_Version::compareVersion('2.0.0'); // returns -1, 0 or 1


http://framework.zend.com/manual/1.8/en/zend.version.reading.html