- substr: documentation ( source)
- strtoupper: documentation ( source)
- ord: documentation ( source)
<?php
$hash = 5381;
$value = strtoupper(senvvp);
for($i = 0; $i < strlen($value); $i++) {
$hash = (leftShift32($hash, 5) + $hash) + ord(substr($value, $i));
}
return $hash;
?>