PHP crc32() Function

PHP crc32() function calculates the crc32 polynomial of a string.

Syntax

int crc32(str);

crc32() Function Parameter

ParameterDescription
str :Required parameter. The string.

crc32() Function Return Value

Return Value :Returns the crc32 checksum of str as an integer.

crc32() Function Example

<?php
echo crc32("%u\n","Returns the crc32 checksum of str as an integer.");
?>