note 43452 modified in function.version-compare by aidan

From: Date: Fri, 07 Oct 2005 23:54:51 +0000
Subject: note 43452 modified in function.version-compare by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96586@lists.php.net to get a copy of this message
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 } ?> --was-- so in a nutshell... I believe it works best like this: 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 (#96586) next »