title: Check array value exist in another array value that contain comma separated value
body: <p>I have 2 arrays in PHP which are:</p>
  
  <pre><code>print_r($vid);  // contain array data
  print_r($vidDB); // contain array data
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>Array
  (
      [0] =&gt; 7
  )
  Array
  (
      [0] =&gt; 5
      [1] =&gt; 4
      [2] =&gt; 6,7
  )
  </code></pre>
  
  <p>Now, I need to check if the 7 <strong>(from variable <code>$vid</code>)</strong> exists in a variable <code>$vidDB</code>.</p>
  
  <p>How can I do this using PHP?</p>
  
  <p>I have tried with </p>
  
  <pre><code>array_intersect($vid, $vidDB)
  </code></pre>
  
  <p>but no luck :(</p>