note 22995 deleted from function.phpversion by nlopess
| From: | nlopess@php.net | Date: | Thu, 26 Feb 2004 16:36:37 +0000 |
| Subject: | note 22995 deleted from function.phpversion by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65808@lists.php.net to get a copy of this message | ||
Note Submitter: akov@relex.ru
----
Another example php version checking. This code like me better:):
function check_php_version($version)
{
// intval used for version like "4.0.4pl1"
$testVer=intval(str_replace(".", "",$version));
$curVer=intval(str_replace(".", "",phpversion()));
if( $curVer < $testVer )
return false;
return true;
}