title: How to combine two associative arrays in to one?
body: <p>I have two arrays as given below:</p>
  
  <pre><code>   [0] =&gt; array(5) {
      ["part_id"] =&gt; string(2) "19"
      ["maker_id"] =&gt; string(2) "29"
      ["sale_deduction_type"] =&gt; string(1) "1"
      ["sale_deduction_value"] =&gt; string(2) "10"
      ["sale_name"] =&gt; string(8) "New Year"
    }
  </code></pre>
  
  <p>and new one:</p>
  
  <pre><code>[0] =&gt; (6) {
          ["bill_id"] =&gt; string(2) "31"
          ["part_number"] =&gt; string(18) "SN14CNANG56-M-BLUE"
          ["part_id"] =&gt; string(2) "19"
          ["part_quantity"] =&gt; string(1) "1"
          ["part_rate"] =&gt; string(6) "232.00"
          ["part_desc"] =&gt; string(12) "this is test"
        }
  </code></pre>
  
  <p>how do i combine these two array1[0] and array2[0] to single array like </p>
  
  <pre><code>array[0] =&gt; (10) {
          ["bill_id"] =&gt; string(2) "31"
          ["part_number"] =&gt; string(18) "SN14CNANG56-M-BLUE"
          ["part_id"] =&gt; string(2) "19"
          ["part_quantity"] =&gt; string(1) "1"
          ["part_rate"] =&gt; string(6) "232.00"
          ["part_desc"] =&gt; string(12) "this is test"
          ["maker_id"] =&gt; string(2) "29"
          ["sale_deduction_type"] =&gt; string(1) "1"
          ["sale_deduction_value"] =&gt; string(2) "10"
          ["sale_name"] =&gt; string(8) "New Year"
    }
  </code></pre>
  
  <p>using array_merge or array_combine was not helpful.</p>