note 32891 deleted from function.crc32 by nlopess
| From: | nlopess@php.net | Date: | Sun, 21 Jan 2007 15:52:02 +0000 |
| Subject: | note 32891 deleted from function.crc32 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122000@lists.php.net to get a copy of this message | ||
Note Submitter: sergi34 at megacceso dot com
----
If you want to display a crc checksum correctly, you need to format it to unsigned because PHP int
type is signed.
example:
<?php
$crc= crc32("String where we calculate the checksum");
printf("%u", $crc);
?>