crc32($your_string) - This PHP function generates the cyclic redundancy checksum (CRC) polynomial of 32-bit length of the input string. This function is often used to validate the integrity of data.
PHP Cookbook: Solutions & Examples