note 107253 added to function.base-convert

From: Date: Tue, 24 Jan 2012 20:34:18 +0000
Subject: note 107253 added to function.base-convert
Groups: php.notes 
Request: Send a blank email to php-notes+get-185734@lists.php.net to get a copy of this message
For bigger numbers, base_convert() returns wired numbers, use some of the functions from the comments until it is fixed. Test your PHP version with the following code: $code_1 = "F255I000000"; $binary_1 = base_convert($code_1, 31, 2); echo "code 1: $code_1\n"; echo "code 2: ".base_convert($binary_1, 2, 31); if code 1 and code 2 are the same, then everything is OK... ---- Server IP: 89.190.194.18 Probable Submitter: 78.83.67.22 ---- Manual Page -- http://www.php.net/manual/en/function.base-convert.php Edit -- https://master.php.net/note/edit/107253 Del: integrated -- https://master.php.net/note/delete/107253/integrated Del: useless -- https://master.php.net/note/delete/107253/useless Del: bad code -- https://master.php.net/note/delete/107253/bad+code Del: spam -- https://master.php.net/note/delete/107253/spam Del: non-english -- https://master.php.net/note/delete/107253/non-english Del: in docs -- https://master.php.net/note/delete/107253/in+docs Del: other reasons-- https://master.php.net/note/delete/107253 Reject -- https://master.php.net/note/reject/107253 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185734) next »