When I'm converting data into a different structure, one thing I like to do is annotate how the structure looks at each point of the process

When I'm converting data into a different structure, one thing I like to do is annotate how the structure looks at each point of the process

I developed this habit when I was building a lot of data conversion scripts in Python, but it's 100% applicable in PHP as well.