note 43452 modified in function.version-compare by jacques

From: Date: Sat, 13 Jan 2007 18:48:33 +0000
Subject: note 43452 modified in function.version-compare by jacques
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121599@lists.php.net to get a copy of this message
[editors note] snipbit fixed after comment from Matt Mullenweg --jm [/editors note] so in a nutshell... I believe it works best like this: <?php if (version_compare(phpversion(), "4.3.0", ">=")) { // you're on 4.3.0 or later } else { // you're not } ?> --was-- so in a nutshell... I believe it works best like this: <?php if (version_compare(php_version(), "4.3.0", ">=")) { // you're on 4.3.0 or later } else { // you're not } ?> http://php.net/manual/en/function.version-compare.php

« previous php.notes (#121599) next »