title: combine multidimentional associative arrays with matching key value pair
body: <pre><code> [traffic] =&gt; Array
      (
          [0] =&gt; Array
              (
                  [id] =&gt; 1
                  [visitors] =&gt; 310
                  [pageviews] =&gt; 1333
                  [created_date] =&gt; 2016-03-09
              )
  
          [1] =&gt; Array
              (
                  [id] =&gt; 2
                  [visitors] =&gt; 374
                  [pageviews] =&gt; 1010
                  [created_date] =&gt; 2016-03-10
              )
  
          [2] =&gt; Array
              (
                  [id] =&gt; 3
                  [visitors] =&gt; 143
                  [pageviews] =&gt; 617
                  [created_date] =&gt; 2016-03-11
              )
  
      )
  
  [source] =&gt; Array
      (
          [0] =&gt; Array
              (
                  [created_date] =&gt; 2016-03-09
                  [scount] =&gt; 368
              )
  
          [1] =&gt; Array
              (
                  [created_date] =&gt; 2016-03-10
                  [scount] =&gt; 550
              )
  
          [2] =&gt; Array
              (
                  [created_date] =&gt; 2016-03-11
                  [scount] =&gt; 238
              )
  
      )
  </code></pre>
  
  <p>I have two multidimensional arrays, I want to combine both arrays into one with matching created_date value, the result should be like this,</p>
  
  <p>Array
  (</p>
  
  <pre><code>[0] =&gt; Array
      (
          [created_date] =&gt; 2016-03-09
          [id] =&gt; 1
          [visitors] =&gt; 310
          [pageviews] =&gt; 1333
          [scount] =&gt; 368
      )
  
  [1] =&gt; Array
      (
          [created_date] =&gt; 2016-03-10
          [id] =&gt; 2
          [visitors] =&gt; 374
          [pageviews] =&gt; 1010
          [scount] =&gt; 550
      )
  
  [2] =&gt; Array
      (
          [created_date] =&gt; 2016-03-11
          [id] =&gt; 3
          [visitors] =&gt; 143
          [pageviews] =&gt; 617
          [scount] =&gt; 238
      )
  </code></pre>
  
  <p>)</p>