note 68492 added to function.bin2hex
| From: | jerome dot heil at gmail dot com | Date: | Sat, 29 Jul 2006 17:02:23 +0000 |
| Subject: | note 68492 added to function.bin2hex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115328@lists.php.net to get a copy of this message | ||
nilzie what you have done is a simple base conversion, here is the code, and the url :
http://www.php.net/manual/en/function.base-convert.php
<?php
echo base_convert("101101011100", 2, 16); //print b5c
echo base_convert("1011 1000 1111 1100", 2, 16); //print b8fc
echo base_convert("1000 1011 1101 0010", 2, 16); //print 8bd2
?>
----
Server IP: 217.174.203.10
Probable Submitter: 86.204.204.15
----
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.bin2hex.php
Edit -- http://master.php.net/note/edit/68492
Del: integrated -- http://master.php.net/note/delete/68492/integrated
Del: useless -- http://master.php.net/note/delete/68492/useless
Del: bad code -- http://master.php.net/note/delete/68492/bad+code
Del: spam -- http://master.php.net/note/delete/68492/spam
Del: non-english -- http://master.php.net/note/delete/68492/non-english
Del: in docs -- http://master.php.net/note/delete/68492/in+docs
Del: other reasons-- http://master.php.net/note/delete/68492
Reject -- http://master.php.net/note/reject/68492
Search -- http://master.php.net/manage/user-notes.php