I am looking for the PHP equelent to JAVA's
"SomeString".hashCode();
function. The hashCode i am looking for should be the same which is used for indexing Hashmaps in PHP. I Hope you can help me :)
EDIT:
Okay found the function i was searching for its written in C and is not available in PHP itself but thanks for your help !
ulong zend_inline_hash_func(char *arKey, uint nKeyLength)
{
ulong $h = 5381;
char *arEnd = arKey + nKeyLength;
while (arKey < arEnd) {
$h += ($h << 5);
$h += (ulong) *arKey++;
}
return $h;
}
$h += ($h << 5)equivalent to$h *= 33?