Re: Create a numeric hash from a text string?
| From: | Curt Zirzow | Date: | Mon, 14 Nov 2005 19:06:09 +0000 |
| Subject: | Re: Create a numeric hash from a text string? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225750@lists.php.net to get a copy of this message | ||
On Mon, Nov 14, 2005 at 10:41:53AM -0800, Brian Dunning wrote:
> Does anyone know if there's a handy way to create a numeric hash from
> a text string? I'm trying to generate an integer as a sort of quick &
> dirty checksum for text strings. Needs to be a decimal integer, not
> hex or otherwise. Any clever ideas appreciated. :)
This should work for a dirty checksum:
http://php.net/crc32
Curt.
--