note 101110 added to function.dechex
| From: | nbarreto at gmail dot com | Date: | Fri, 26 Nov 2010 14:37:02 +0000 |
| Subject: | note 101110 added to function.dechex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174382@lists.php.net to get a copy of this message | ||
Simplifying and making more dynamic the function from mountarreat:
function lrgDec2Hex($number) {
$hex = array();
while($number > 0) {
array_push($hex, strtoupper(dechex(bcmod($number, '16'))));
$number = bcdiv($number, '16', 0);
}
krsort($hex);
return implode($hex);
}
----
Server IP: 69.147.83.197
Probable Submitter: 195.70.0.136
----
Manual Page -- http://www.php.net/manual/en/function.dechex.php
Edit -- https://master.php.net/note/edit/101110
Del: integrated -- https://master.php.net/note/delete/101110/integrated
Del: useless -- https://master.php.net/note/delete/101110/useless
Del: bad code -- https://master.php.net/note/delete/101110/bad+code
Del: spam -- https://master.php.net/note/delete/101110/spam
Del: non-english -- https://master.php.net/note/delete/101110/non-english
Del: in docs -- https://master.php.net/note/delete/101110/in+docs
Del: other reasons-- https://master.php.net/note/delete/101110
Reject -- https://master.php.net/note/reject/101110
Search -- https://master.php.net/manage/user-notes.php