note 77253 added to function.phpversion

From: Date: Tue, 21 Aug 2007 19:30:50 +0000
Subject: note 77253 added to function.phpversion
Groups: php.notes 
Request: Send a blank email to php-notes+get-129678@lists.php.net to get a copy of this message
in reply to natio at phpfox dot com: PHP 4 in GNU/Linux (Debian Etch) has this version: "4.3.10-21" You could wrap using floatval: floatval(PHP_VERSION) but this could probably change in a next php version so floatval would return another value like 4, 0 or FALSE. I would not recommend to numerically compare version numbers! ---- Server IP: 217.160.72.57 Probable Submitter: 85.177.155.137 ---- Manual Page -- http://www.php.net/manual/en/function.phpversion.php Edit -- https://master.php.net/note/edit/77253 Del: integrated -- https://master.php.net/note/delete/77253/integrated Del: useless -- https://master.php.net/note/delete/77253/useless Del: bad code -- https://master.php.net/note/delete/77253/bad+code Del: spam -- https://master.php.net/note/delete/77253/spam Del: non-english -- https://master.php.net/note/delete/77253/non-english Del: in docs -- https://master.php.net/note/delete/77253/in+docs Del: other reasons-- https://master.php.net/note/delete/77253 Reject -- https://master.php.net/note/reject/77253 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129678) next »