title: PHP combine multiple arrays into one single entity
body: <p>array1 look like this</p>
  
  <pre><code> $array1 = [{
          'id': 1,
              'name': 'John'
      }]
  </code></pre>
  
  <p>and here is array2 :</p>
  
  <pre><code>$array2 = [{
      'id': 1,
          'name': 'someone'
  }, {
      'id': 1,
          'name': 'Rocky'
  }, {
      'id': 1,
          'name': 'Samuel'
  }]
  </code></pre>
  
  <p>I want something like this:</p>
  
  <pre><code>$array1combinedwitharray2 = [{
      'id': 1,
          'name': 'John'
  }, {
      'id': 1,
          'name': 'someone'
  }, {
      'id': 1,
          'name': 'Rocky'
  }, {
      'id': 1,
          'name': 'Samuel'
  }
  
  ]
  </code></pre>
  
  <p>I tried several time and the result was the array goes into another array.</p>