hello,
can anyone help me out with a bit handler?
it seems as if php's decbin() removes leading zeroes when converting
from hex....so for example decbin(hexdec()); basically removes any
leading zeroes.
i'm trying to convert some 32bit hex words into bin, and the first 12
bits need to be broken down into 3-bit sets for decoding a key of
sorts. for example:
(on paper)
0x2101769:
-------normal bin------- ----3-bit sets----
0010 0001 0000 0001 011 101 101 001
(in php)
decbin(hexdec(2101769)) = 1000000001001000001001
are there any functions that could break apart the number once i get
the conversion done correctly?
thanks!