I've looked in the docs and don't see anything for this per se...
I need to convert a binary number of arbitrary length to a signed
integer.
This is how I'm doing it now:
CODE
function bin2int ($bin) {
if (substr($bin,0,1) == 1) {
$val = 0 -
On Tue, April 26, 2005 9:56 am, René Fournier said:
I've looked in the docs and don't see anything for this per se...
I need to convert a binary number of arbitrary length to a signed
integer.
No matter what you do, a PHP integer is going to be 32-bit.
So artbitrary length is not gonna
2 matches
Mail list logo