PHP internal hashCode Function

后端 未结 5 705
孤独总比滥情好
孤独总比滥情好 2021-02-09 14:59

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

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-09 15:28

    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.

提交回复
热议问题