note 68492 deleted from function.bin2hex by betz
| From: | betz@php.net | Date: | Sat, 29 Jul 2006 17:23:40 +0000 |
| Subject: | note 68492 deleted from function.bin2hex by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115329@lists.php.net to get a copy of this message | ||
Note Submitter: jerome dot heil at gmail dot com
Reason: spam
----
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
?>