i've had to do this for many datasets, but in an effort to prevent key collisions/overwrites, i've always opted to preserve the parent key as part of the flattened key for the children with a dot separator. ie: `nested_array.key_three`. i've never used these SPL classes to do it though, might have to look into that!
@thrldr31067 ай бұрын
Cool trick, very insightful. Although I wouldn't probably use it in production code since it's a bit cryptic. A good way to flex on your colleagues