HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP String Reference : Print the result of crc32()
The crc32() function calculates a 32-bit CRC (cyclic redundancy checksum) for a string.
This function can be used to validate data integrity.
Parameter | Description |
---|---|
string | Required. The string to be calculated |
Return Value: | Returns the crc32 checksum of string as an integer |
---|---|
PHP Version: | 4.0.1+ |
Example:
In this example we will print the result of crc32() with and without the "%u" formatter (note that the result is equal):
The output of the code above will be:
Example:
In this example we will print the result of crc32() with and without the "%u" formatter (note that the result is not equal):
The output of the code above will be:
❮ PHP String Reference