title: php | Convert array to FIND_IN_SET
body: <p>I'm trying to convert my array to query string. May be you can help me.</p>
  
  <p>My array looks like:</p>
  
  <pre><code>Array
  (
      [3] =&gt; Array
          (
              [0] =&gt; 7
              [1] =&gt; 13
              [2] =&gt; 1
          )
  
      [4] =&gt; Array
          (
              [0] =&gt; 14
              [1] =&gt; 2
          )
  
  )
  </code></pre>
  
  <p>And I'm trying to convert this into:</p>
  
  <pre><code>(FIND_IN_SET('13', vals) || FIND_IN_SET('7', vals) || FIND_IN_SET('1', vals)) AND (FIND_IN_SET('14', vals) || FIND_IN_SET('2', vals))
  </code></pre>
  
  <p>How can I do this? Thanks!</p>