Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 8, 2006, 9:27 pm
rate this thread
integers, something like this:
What I want in my resulting packed $binrow is
0x1234 0x01 0x02
but that packs it like this:
0x1234 0x00 0x31 0x00 0x32
which is most definitely not what I want.
How can I explicitly tell PHP that I want to cast an int as a char?
(Sorry if this is a FAQ somewhere, but I can't find it... This is
trivial to my C-trained mind but I can't see how to do it in PHP.)