note 68832 added to function.base-convert
| From: | Kiam at osu1 dot php dot net | Date: | Sat, 12 Aug 2006 12:07:17 +0000 |
| Subject: | note 68832 added to function.base-convert | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115827@lists.php.net to get a copy of this message | ||
Refering to the function posted by Michael Renner, I would change the line
$result = $tostring{$divide} . $result;
in
$result = $chars{$divide} . $result;
as $divide seems garanted to be less than $tobase.
That also eliminates the need of the variable $tostring.
-- Kiam
----
Server IP: 66.163.161.117
Probable Submitter: 151.37.183.147
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.base-convert.php
Edit -- https://master.php.net/note/edit/68832
Del: integrated -- https://master.php.net/note/delete/68832/integrated
Del: useless -- https://master.php.net/note/delete/68832/useless
Del: bad code -- https://master.php.net/note/delete/68832/bad+code
Del: spam -- https://master.php.net/note/delete/68832/spam
Del: non-english -- https://master.php.net/note/delete/68832/non-english
Del: in docs -- https://master.php.net/note/delete/68832/in+docs
Del: other reasons-- https://master.php.net/note/delete/68832
Reject -- https://master.php.net/note/reject/68832
Search -- https://master.php.net/manage/user-notes.php