BigEndian to integer
| From: | Gerard Samuel | Date: | Mon, 14 Jul 2003 08:00:04 +0000 |
| Subject: | BigEndian to integer | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155049@lists.php.net to get a copy of this message | ||
A bit off topic
Im trying to figure out how to convert BigEndian byte words to integers.
For example ->
0 0 0 18 = 18
The only way I know how to convert this is by writing down on paper, and writing 8 4 2 1 above the numbers and adding up the values.
Trying to figure out a way via plain old math/php has me stumped at the moment. (Maybe some sleep is in order)
Any help and or tips would be greatly appreciated.
Thanks