title: How to merge 2 multidimensional array's into one
body: <p>I am new to php and need help on multidimensional arrays. Specifically I want array1 to be the 'value' and array2 to be the 'key'.</p>
  <p>Array1:</p>
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; 100
              [1] =&gt; 2020-01-02
              [2] =&gt; 75
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; 50
              [1] =&gt; 2020-01-03
              [2] =&gt; 35
          )
  
      [2] =&gt; Array
          (
              [0] =&gt; 200
              [1] =&gt; 2020-01-05
              [2] =&gt; 165
          )
  )
  </code></pre>
  <p>Array2:</p>
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; Price
              [1] =&gt; Date
              [2] =&gt; PriceNet
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; Price
              [1] =&gt; Date
              [2] =&gt; PriceNet
          )
  
      [2] =&gt; Array
          (
              [0] =&gt; Price
              [1] =&gt; Date
              [2] =&gt; PriceNet
          )
  )
  
  </code></pre>
  <p>Desired result:</p>
  <pre><code>
  Array
  (
      [0] =&gt; Array
          (
              [Price] =&gt; 100
              [Date] =&gt; 2020-01-02
              [PriceNet] =&gt; 75
          )
  
      [1] =&gt; Array
          (
              [Price] =&gt; 50
              [Date] =&gt; 2020-01-03
              [PriceNet] =&gt; 35
          )
  
      [2] =&gt; Array
          (
              [Price] =&gt; 200
              [Date] =&gt; 2020-01-05
              [PriceNet] =&gt; 165
          )
  )
  
  </code></pre>
  <p>I looked into 'array_merge' and 'array_combine' but I am to new to figure out a smart way to solve the problem.</p>
  <p>Any help is greatly appreciated </p>