title: Explode php array
body: <p>I have following array result :</p>
  
  <pre><code>Array ( [0] =&gt; company_1 [1] =&gt; company_10 [2] =&gt; company_15 ) 
  </code></pre>
  
  <p>I want the result something like this as i can use in the <code>mysql IN</code> query clause:</p>
  
  <pre><code>$result= "1, 10, 15";
  </code></pre>
  
  <p>I use explode function but again it is returning both array values separately like this: </p>
  
  <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; company [1] =&gt; 1 ) [1] =&gt; Array ( [0] =&gt; company [1] =&gt; 10 ) [2] =&gt; Array ( [0] =&gt; company [1] =&gt; 15 ) )   
  </code></pre>
  
  <p>But wondering how can i only get numbers separately and stored in one string.</p>
  
  <p>Any help ?
  '</p>