RE: [PHP] Forcing little endian with pack("d");

2002-03-22 Thread Mika Tuupola
On Fri, 22 Mar 2002, Mike Eynon wrote: > I have looked through the pack code in php-4.1.2. There appear to be no > other options other than what is documented on the php.net pack function > page. There appears to be no way of specifying endian-ness for floats or > doubles using pack. They are

RE: [PHP] Forcing little endian with pack("d");

2002-03-22 Thread Mike Eynon
.2388 -Original Message- From: Mika Tuupola [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 3:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Forcing little endian with pack("d"); http://www.php.net/manual/en/function.pack.php The manual page describes forma

[PHP] Forcing little endian with pack("d");

2002-03-20 Thread Mika Tuupola
http://www.php.net/manual/en/function.pack.php The manual page describes format string "d" as: d double (machine dependent size and representation). Is there an easy way of forcing the binary to be representated little endian even with hosts which are bi