← All built-ins / crc32()
crc32()
crc32(string $s): int
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | input data |
Return value
CRC-32 checksum as integer — detects accidental corruption.
Example
$c = crc32("holy");
echo crc32("holy") == $c ? "stable" : "unstable";stable