FP array checksum?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I would like to generate a checksum for a small array of floating
point numbers (to see if there was a change in  or not in the array,
without having to have all the original values in a form.) some sort
of  CRC would be nice.

Any know of any sample code or suggestions?

Re: FP array checksum?

On Aug 7, 7:10=A0pm, la...@portcommodore.com wrote:
Quoted text here. Click to load it

$checksum = crc32 (implode ($myArray));

Re: FP array checksum?

Quoted text here. Click to load it

Darn you!  It had to be so easy.. :-)


Re: FP array checksum?

*** larry@portcommodore.com escribió/wrote (Thu, 7 Aug 2008 11:10:08 -0700
Quoted text here. Click to load it

You can use serialize() on the array to get a string and then apply a
hashing function like md5(), sha1() or crc32().

-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com

Site Timeline