if(2 ^ $ControlBitPos = (Asc(Mid($DecompData, $ControlPos, 1)) And 2 ^ $ControlBitPos))

Can someone convert that to PHP for me? Its visual basic and I started it but if you notice it still has the And part in it. I don't know how to convert that.