Definition
The crc32() function calculates a 32-bit CRC (cyclic redundancy checksum) for a string. This function can be used to validate data integrity.
Syntax
crc32(string)
Parameters
Parameter | Description |
---|---|
string |
Required. The string to be calculated. |
Example
<?php
$str = crc32("Hello World!");
printf("%u\n", $str);