Re: unpack() big endian signed long?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 23, 2008 9:57 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:

> On Jan 23, 2008 3:38 PM, Floor Terra <floort@xxxxxxxxx> wrote:
>
> > Hi,
> >
> > Is it possible to use unpack() to read a big endian signed long
> > on a little endian machine?
> > http://nl.php.net/pack refers to perl, on wich this function is based.
> > The php function unpack() doesn't seem to support the "<" and ">"
> > modifiers like perl does.
>
>
> did you see this in the comments on that page?
>
Yes.
I guess I'm stuck with manual byte reversing.
Someone at ##php on freenode.org told me it is possible, but didn't tell me
how.

It seems like an obvious feature.

Thanks for your time.

Floor Terra

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux