Javatpoint Logo
Javatpoint Logo

PHP crc32() Function

PHP 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:

Parameter Description Required/Optional
string The string to be calculated. Required

Example 1

Output:

2454994420

Example 2

Output:

Your string value is : Hello JavaTpoint
1303530391

Example 3

Output:

Without %u: 1303530391
With %u: 1303530391

Next TopicPHP String




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA