note 20190 deleted from function.version-compare by irc-html

From: Date: Fri, 19 Apr 2002 22:19:16 +0000
Subject: note 20190 deleted from function.version-compare by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29584@lists.php.net to get a copy of this message
<quote>Or, a little more simple: function minimum_version( $vercheck ) { $minver = preg_replace("%\.%", "", $vercheck); $curver = preg_replace("%\.%", "", phpversion()); if($curver < $minver) return false; else return true; } etc. </quote> you could run into errors with this example. If we have a version lets say 4.1.11 and one version 4.11.1 you'll not get the right results.

« previous php.notes (#29584) next »