[PHP] Byte conversion

2007-06-25 Thread Eric Butera
I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i + 1] == (byte)0x51)) { The code is looping

Re: [PHP] Byte conversion

2007-06-25 Thread Tijnema
On 6/25/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i

Re: [PHP] Byte conversion

2007-06-25 Thread Stut
Eric Butera wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i + 1] == (byte)0x51)) { The

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Stut [EMAIL PROTECTED] wrote: Eric Butera wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] ==

Re: [PHP] Byte conversion

2007-06-25 Thread Robin Vickery
On 25/06/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece of code: if ((ba[i + 0] == (byte)0xa7) (ba[i

Re: [PHP] Byte conversion

2007-06-25 Thread Eric Butera
On 6/25/07, Tijnema [EMAIL PROTECTED] wrote: On 6/25/07, Eric Butera [EMAIL PROTECTED] wrote: I've been trying to figure out a way to do this all day and I'm afraid I might need a bit of help. Basically I am trying to port over something from Java to PHP and I'm stuck on one particular piece