I have a dictionaries table looks like this:
dictionaries
Here is the array result that I want:
I\'ve already achieved the result by these ugly code: