PHP

PHP Menu

PHP

crc32() Function - Definition, Syntax, Parameters, Examples

Definition

The crc32() function calculates a 32-bit CRC (cyclic redundancy checksum) for a string. This function can be used to validate data integrity.

Syntax

crc32(string)

Parameters

Parameter Description
string Required. The string to be calculated.

Example

<?php
$str = crc32("Hello World!"); printf("%u\n", $str);

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods