Sample code for 30+ languages & platforms
PHP

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat PHP Downloads

Chilkat2 PHP
<?php

use Chilkat2\Crypt2;

$crypt = new Crypt2();

$filePath = 'c:/temp/someFile.dat';

$crc32 = $crypt->CrcFile('crc-32', $filePath);
echo $crc32, "\n";

$crc8 = $crypt->CrcFile('crc8', $filePath);
echo $crc8, "\n";