note 115477 added to function.dechex
| From: | jenny-schubert87 dot 1 at web dot de | Date: | Thu, 31 Jul 2014 22:02:23 +0000 |
| Subject: | note 115477 added to function.dechex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200080@lists.php.net to get a copy of this message | ||
I figured out another way to do this:
if you have a very long decimal number in gmp format (you can always create a gmp number with
gmp_init($numberstring), you can simply do gmp_strval($gmpnumber, 16), where $gmpnumber is your gmp
number, and the 16 is the base you want to transform it to. Worked for me like a charm, also works
for other bases.
----
Server IP: 72.52.91.14
Probable Submitter: 87.157.33.114
----
Manual Page -- http://php.net/manual/en/function.dechex.php
Edit -- https://master.php.net/note/edit/115477
Del: integrated -- https://master.php.net/note/delete/115477/integrated
Del: useless -- https://master.php.net/note/delete/115477/useless
Del: bad code -- https://master.php.net/note/delete/115477/bad+code
Del: spam -- https://master.php.net/note/delete/115477/spam
Del: non-english -- https://master.php.net/note/delete/115477/non-english
Del: in docs -- https://master.php.net/note/delete/115477/in+docs
Del: other reasons-- https://master.php.net/note/delete/115477
Reject -- https://master.php.net/note/reject/115477
Search -- https://master.php.net/manage/user-notes.php