note 15977 added to function.phpversion

From: Date: Thu, 11 Oct 2001 01:35:29 +0000
Subject: note 15977 added to function.phpversion
Groups: php.notes 
Request: Send a blank email to php-notes+get-18803@lists.php.net to get a copy of this message
except, commenting on the above, that if PHP version is >= 10.n.n, then the expression is false. if all you need is to check that the version is >= 4, then this (though maybe not perfect in concept, either) works:<br><br>list($majver) = explode(".",phpversion());<br>$goodver = ($majver >= 4); -- http://www.php.net/manual/en/function.phpversion.php http://master.php.net/manage/user-notes.php?action=edit+15977 http://master.php.net/manage/user-notes.php?action=delete+15977 http://master.php.net/manage/user-notes.php?action=reject+15977

« previous php.notes (#18803) next »