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.
Printable View
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.
Hi there,
Literally translated it would be this.
See if it works.Code:if(pow(2, $ControlBitPos) == (ord(substr($DecompData, $ControlPos, 1)) && pow(2, $ControlBitPos))
By the way, you posted in the PHP CodeBank section which is actually only to post code.
Questions can be asked in the PHP Section.
I'll flag a moderator to move this thread, next time please post in the other sections ;)
I already made custom php functions for all the functions in that line but thanks. And thanks for writing that for me I'll see if it works.
Moved From The CodeBank
I have never asked that question before.
if you want to get technical, you did in this thread.