note 84424 deleted from function.phpversion by googleguy

From: Date: Tue, 22 Oct 2013 06:47:44 +0000
Subject: note 84424 deleted from function.phpversion by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196646@lists.php.net to get a copy of this message
Note Submitter: pl DOT baasch AT skycube DOT net ---- In a addition to phpversion,.. if you've got a system like ubuntu or some else, you get <?php echo phpversion(); // 5.2.4-2ubuntu5.2 ?> To fix this, use the following: <?php echo substr(phpversion(),0,strpos(phpversion(), '-')); ?>

« previous php.notes (#196646) next »