function hashStringToInt($string){ $stringHash = substr(md5($string), 0, 8); return base_convert($stringHash, 16, 10);}