← All docs

crc32()

Calculates the CRC32 polynomial of a string.

crc32()

function crc32(string $string): int

Calculates the CRC32 polynomial of a string.

Parameters:

  • $string (string)

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how crc32 is implemented in the compiler, see the internals page.