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 u
spl_object_hash is probably the closest to what you want, but despite the name it does not really return a hash of the passed in value, merely an internal unique identifier. I don't know if it's the hash actually used under the hood for arrays etc.