title: coding to check the data with array Intersect
body: <p>I wanted to check to enter data into the database.Checks are as follows</p>
  
  <pre><code>$implode1 = "cat, dog, chicken";
  
  $implode2 = "cow, goat, cat";
  </code></pre>
  
  <p>If the cat in the variable <code>$implode1</code> is also contained in the variable <code>$implode2</code>, it should display a warning message. How to code for the above problem? </p>
  
  <p>Help me please :(</p>