note 90169 deleted from function.json-encode by tularis
| From: | tularis@php.net | Date: | Thu, 04 Feb 2016 08:31:24 +0000 |
| Subject: | note 90169 deleted from function.json-encode by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204851@lists.php.net to get a copy of this message | ||
Note Submitter: atrauzzi at gmail dot com
----
Here's an idea for people trying to figure out an alternative to implode() to flatten
multi-dimensional arrays.
Use json_encode()!
I needed a way to create a hash from an array:
md5(json_encode($multiDimensionalArray)) does the trick!
Happy caching!