PHP Get the value of every occurrence of a key in a multidimensional array

Advertisements How would you extract every value of a key regardless of how deep or shallow it is in an array. Here is a sample JSON array. I want to grab every occurrence of "content" and concatenate them into a single string. { "foo": [ "content": "hi", "inner": [] ], "bar": [ "content": "hi2", "inner":… Read More PHP Get the value of every occurrence of a key in a multidimensional array