note 70665 added to function.version-compare

From: Date: Mon, 23 Oct 2006 13:38:35 +0000
Subject: note 70665 added to function.version-compare
Groups: php.notes 
Request: Send a blank email to php-notes+get-119011@lists.php.net to get a copy of this message
To answer elmuerte's note (06-Jul-2006 03:24), you'd even better remove spaces than replacing them. <?php version_compare("1.0.0.0beta1", "1.0.0.0alpha2") == 1; // good version_compare("1.0.0.0-beta 1", "1.0.0.0-alpha 2") == 1; version_compare("1.0.0.0.beta 1", "1.0.0.0.alpha 2") == 1; version_compare("1.0.0.0.beta.1", "1.0.0.0.alpha.2") == 1; ?> ---- Server IP: 195.221.21.36 Probable Submitter: 62.73.5.156 ---- Manual Page -- http://www.php.net/manual/en/function.version-compare.php Edit -- https://master.php.net/note/edit/70665 Del: integrated -- https://master.php.net/note/delete/70665/integrated Del: useless -- https://master.php.net/note/delete/70665/useless Del: bad code -- https://master.php.net/note/delete/70665/bad+code Del: spam -- https://master.php.net/note/delete/70665/spam Del: non-english -- https://master.php.net/note/delete/70665/non-english Del: in docs -- https://master.php.net/note/delete/70665/in+docs Del: other reasons-- https://master.php.net/note/delete/70665 Reject -- https://master.php.net/note/reject/70665 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119011) next »