PHP best way to MD5 multi-dimensional array?

后端 未结 13 2057
别那么骄傲
别那么骄傲 2020-12-07 11:48

What is the best way to generate an MD5 (or any other hash) of a multi-dimensional array?

I could easily write a loop which would traverse through each level of the

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 12:27

    Aside from Brock's excellent answer (+1), any decent hashing library allows you to update the hash in increments, so you should be able to update with each string sequentially, instead having to build up one giant string.

    See: hash_update

提交回复
热议问题