Re: BigEndian to integer

From: Date: Mon, 14 Jul 2003 09:04:30 +0000
Subject: Re: BigEndian to integer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155052@lists.php.net to get a copy of this message
http://www.php.net/pack Gerard Samuel wrote:
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


« previous php.general (#155052) next »