Forcing little endian with pack("d");
| From: | Mika Tuupola | Date: | Wed, 20 Mar 2002 23:07:38 +0000 |
| Subject: | Forcing little endian with pack("d"); | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89428@lists.php.net to get a copy of this message | ||
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 big endian (undocumented
format string for example?).
--
Mika Tuupola http://www.appelsiini.net/~tuupola/