title: Transform array, set each array element with parent key php
body: <p>I am receiving data that is an array of elements that contains an array of tags by language like this</p>
  
  <pre><code>[
    {
      "1": "tag_es1;tag_es2;tag_es3",
      "2": "tag_en1;tag_en2;tag_en3"
    },
    {
      "1": "tag_es1;tag_es2",
      "2": "tag_en1;tag_en2"
    }
  ]
  </code></pre>
  
  <p>I need to separate each <code>tag</code> by language, so i use<code>array_map</code> to transform it like this</p>
  
  <pre><code>[
    {
      "1": [
        "tag_es1",
        "tag_es2",
        "tag_es3"
      ],
      "2": [
        "tag_en1",
        "tag_en2",
        "tag_en3"
      ]
    },
    {
      "1": [
        "tag_es1",
        "tag_es2"
      ],
      "2": [
        "tag_en1",
        "tag_en2"
      ]
    }
  ]
  </code></pre>
  
  <p>Bu what i need is the response to be like this</p>
  
  <pre><code>[
    {
      {
        "1" : "tag_es1",
        "2" : "tag_en1"
      },
      {
        "1" : "tag_es2",
        "2" : "tag_en2"
      },
      {
        "1" : "tag_es3",
        "2" : "tag_en3"
      }
    },
    {
      {
        "1" : "tag_es4",
        "2" : "tag_en4"
      },
      {
        "1" : "tag_es5",
        "2" : "tag_en5"
      }
  
    }
  ]
  </code></pre>
  
  <p>I tried using <code>array_combine</code>, <code>array_walk</code>, and manually doing it inside <code>array_map</code>, but with no success, what could i do?</p>