PHP crc32() Function
PHP crc32() Function
The crc32() function in PHP Calculates the crc32 polynomial of a string.
Syntax
crc32( string $str )
Parameter
str(required)- This parameter represents The string to be calculated
Return
This function returns the crc32 checksum of string as an integer.
Example 1
Output
Original string:Hello World! New String: 472456355
Example 2
Output
Original string: TutorialAndExample 2474445182
Example 3
Output
Without the %u: 3111650111 With the %u: 3111650111