title: Mix php array with different key values
body: <p>Is it possible to merge two arrays (color, application)</p>
  
  <pre><code>
  {
      "red", 
      "green"
  }
  
  {
      "1": {
          "4": "11",
          "5": "12"
      },
      "2": {
          "4": "21",
          "5": "22"
      }
  }
  </code></pre>
  
  <p>to a new array pushing each value on each value of the first array?</p>
  
  <pre><code>
  {
      "red": {
          "1": {
              "4": "11",
              "5": "12"
          }
      },
      "green" : {
          "2": {
              "4": "21",
              "5": "22"
          }
      }
  }
  
  
  </code></pre>
  
  <p>The key is different for each array how ever the order will be always correct. </p>
  
  <p>UPDATE: Thanks to @Don'tPanic array_combine() did the work! Thanks</p>
  
  <p>UPDATE2: @arkascha Presented another solution, it happens on my case that both solutions were acceptable, here a screenshot of both results. <a href="https://prnt.sc/qy344l" rel="nofollow noreferrer">link</a></p>