You are here: Re: Create a numeric hash from a text string? « PHP « IT news, forums, messages
Re: Create a numeric hash from a text string?

Posted by "Dan Baker" on 11/14/05 20:57

Quick-n-easy:
int crc32 ( string str ) -- make sure to read the manual about the
unsigned/signed issue.

DanB


"Brian Dunning" <brian@briandunning.com> wrote in message
news:BAE2710C-2A3D-4957-A554-77BCE5E4F664@briandunning.com...
> 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. :)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация