murmurhash 2.0 extension for PHP
int murmurhash( string $str[, int $seed] )
- tar zxf php_murmurhash.tgz
- cd php_murmurhash
- phpize
- ./configure
- make
- make install
- echo "extension = murmurhash.so" >> /etc/php.ini (your php.ini file)
<?php
$str = 'some string';
$hash = murmurhash( $str );
?>