Peter John Peter John - 5 months ago 31x
PHP Question

PHP best way to MD5 multi-dimensional array?

i was wondering 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 array, concatenating each value into a string, and simply performing the MD5 on the string.

However, this seems cumbersome at best and i wondered if there was a funky function which would take a multi-dimensional array, and hash it?

Thanks for your time.