I'm a little stumped here. I have 2 32-bit integers, one for the most significant bits & the other is the least. How do I find the decimal equivalent from those two in PHP?

*Update:*
I have tried the suggestion from @bwoebi and modified it a little. Here's the code:

```
$value=get64($msb, $lsb);

function get64($msb, $lsb) {
    $count = count($lsb);
    for($i=0; $i < $count; $i++) {
        $value[$i] = bcadd(bcmul($msb[$i], bcpow(2, 32)), $lsb[$i] > 0?$lsb[$i]:bcadd(bcsub(bcpow(2, 32), $lsb[$i]), 2 << 30)); // $a most significant bits, $b least significant bits
    }
}

```

Output:

```
msb=Array ( [0] => INTEGER: 0 [1] => INTEGER: 0 ) 
lsb=Array ( [0] => INTEGER: 143 [1] => INTEGER: 0 ) 
value=Array ( [0] => 2147483648 [1] => 2147483648 ) 

```

The output does not look right...I would have expected 143 as value[0]. Any input?