PHP crc32() FunctionPHP crc32() function is important string function, which is used to calculate the crc32( cyclic redundancy checksum ) polynomial of a string. It can be used to validate data integrity. Note : you are using crc32() function then, you must have to use %u formatter for the printf() or sprintf() function. If you are not using then it will return incorrect or negative value.Syntax:
Example 1Output: 2454994420 Example 2Output: Your string value is : Hello JavaTpoint 1303530391 Example 3Output: Without %u: 1303530391 With %u: 1303530391
Next TopicPHP String
|