title: How to check two values in codeigniter in_array function
body: <p>I have the following array values in $taxIdarr array</p>
  
  <pre><code>Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 1 )
  </code></pre>
  
  <p>How can i check the value 1,2 in in_array I am using the following code</p>
  
  <pre><code>if(in_array("1,2",$taxIdarr))
  {
     echo "test";
  }
  </code></pre>
  
  <p>But not working.Please help me</p>