note 32891 added to function.crc32
| From: | sergi34 at megacceso dot com | Date: | Tue, 10 Jun 2003 08:27:12 +0000 |
| Subject: | note 32891 added to function.crc32 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50078@lists.php.net to get a copy of this message | ||
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);
?>
----
Manual Page -- http://www.php.net/manual/en/function.crc32.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32891
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32891&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32891&report=yes