Re: [PHP] Re: Binary mah

2004-06-11 Thread Knightking
On Thu, 10 Jun 2004 20:08:08 -0700, Justin Patrin [EMAIL PROTECTED] wrote: Mark wrote: [snip] I'm not sure what's wrong with the code you have, but for the 4-digit one you have: $packed = 4-bit var with ABCD encoded in it $a = $packed 1; $b = $packed 2; $c = $packed 4; $d = $packed 8;

Re: [PHP] Re: Binary mah

2004-06-11 Thread Justin Patrin
Knightking wrote: On Thu, 10 Jun 2004 20:08:08 -0700, Justin Patrin [EMAIL PROTECTED] wrote: Mark wrote: [snip] I'm not sure what's wrong with the code you have, but for the 4-digit one you have: $packed = 4-bit var with ABCD encoded in it $a = $packed 1; $b = $packed 2; $c = $packed 4;