crc32
-
To calculate the crc32 polynomial of a string, Ruby uses the
Zlib library’sZlib.crc32 class method.PHP
$result = crc32("hello world"); var_export($result); // => 222957957
Ruby
require 'zlib' p Zlib.crc32("hello world") # => 222957957
see also
Looking for Rails or PHP web application development, integration, and training?
Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.

