title: array of comma separated string IN in clause mysql
body: <p>I have a array like that :</p>
  
  <pre><code> $myarray=  'zzz,aaa,bbb'  ; 
  </code></pre>
  
  <p>and want use it in mysql IN clause like that :</p>
  
  <pre><code> "...  WHERE ids IN ($myarray) "   // didnt work 
   "...  WHERE ids IN ('$myarray') " // didnt work
  </code></pre>
  
  <p>the error im getting is that the first value in that array <code>zzz</code> says that zzz is not a column name . so i understand that i must separate the values with quotes to be like that :</p>
  
  <pre><code> $myarray=  ' "zzz","aaa","bbb" '  ;
  </code></pre>
  
  <p>But i have no clue to do that . any help would be much appreciated.</p>