Re: byte order of integers

From: Date: Wed, 15 May 2002 16:08:48 +0000
Subject: Re: byte order of integers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97748@lists.php.net to get a copy of this message
decbin() will convert an integer to it's corresponding binary representation of 32 bits. Divide that into 4 groups and you have it separated into bytes. John Horton wrote:
Hi! Is there any way of decomposing an integer into it's constituent bytes so that a new byte order can be created? tia JohnH John Horton Software Engineer BITbyBIT International Limited john.horton@bitbybit.co.uk Tel: + 44 (0) 1865 865400 Fax: + 44 (0) 1865 865450 www.bitbybit.co.uk Disclaimer: Internet communications are not secure and BitbyBit does not accept any legal responsibility for the content of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of BitbyBit International Limited. If you have received this email in error, please reply to the sender or call +44(0)1865 865400 and delete all copies of this mail.


« previous php.general (#97748) next »