title: How to check if value one array elements entirely exists in another array and create new array as a container of different array values in php
body: <p>From both arrays, I want to check if it has the same value, then it will create a new array as a different array container, and this my array<br>
  <strong>$array1</strong></p>
  
  <pre><code>"[
      {
          "inveninfoid": "298",
          "product_no": "SKU999212"
      },
      {
          "inveninfoid": "297",
          "product_no": "SKU999211"
      },
      {
          "inveninfoid": "296",
          "product_no": "SKU999210"
      },
      {
          "inveninfoid": "307",
          "product_no": "SKU999213"
      },
      {
          "inveninfoid": "308",
          "product_no": "SKU999214"
      },
      {
          "inveninfoid": "309",
          "product_no": "SKU999215"
      }
  ]"
  </code></pre>
  
  <p><strong>$array2</strong></p>
  
  <pre><code>"[
      {
          "inveninfoid": "298",
          "product_no": "SKU999212",
      },
      {
          "inveninfoid": "297",
          "product_no": "SKU999211",
      },
      {
          "inveninfoid": "296",
          "product_no": "SKU999210",
      },
      {
          "inveninfoid": "307",
          "product_no": "SKU999213",
      }
  ]"
  </code></pre>
  
  <p><br>
  then the result I expect is to form a new array as $array3 like this.
  <br>
  <strong>$array3</strong></p>
  
  <pre><code>"[
      {
          "inveninfoid": "308",
          "product_no": "SKU999214"
      },
      {
          "inveninfoid": "309",
          "product_no": "SKU999215"
      }
  ]"
  </code></pre>