PHP: PharFileInfo->getCRC32 - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

PharFileInfo->getCompressedSize PharFileInfo::__construct

Last updated: Sat, 27 Jan 2007

view this page in

# PharFileInfo->getCRC32

(no version information, might be only in CVS)

PharFileInfo->getCRC32 -- Returns CRC32 code or throws an exception if not CRC checked

## Описание

int PharFileInfo->getCRC32 ( void )

This returns the crc32() checksum of the file within the Phar archive.

## Возвращаемые значения

The crc32() checksum of the file within the Phar archive.

## Примеры

Пример 1. A PharFileInfo->getCRC32() example

`<?php
$p = new Phar('my.phar');
$p['myfile.txt'] = 'hi';
$file = $p['myfile.txt'];
echo $file->getCRC32();
?>`

Результат выполнения данного примера:

    3633523372

add a note User Contributed Notes
PharFileInfo->getCRC32
There are no user contributed notes for this page.
PharFileInfo->getCompressedSize PharFileInfo::__construct

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST