title: Build comma separated string in PHP Loop
body: <p>Hello Guys i need to do this,</p>
  
  <p>I have a common loop</p>
  
  <pre><code>foreach ($stuffs as $stuff) {
  echo $stuff;
  }
  </code></pre>
  
  <p>Lets assume $stuff is an 'id' of a mysql table what i have and i dont want to be showed in next results, so i want to build a string like this</p>
  
  <pre><code>1,23,54,67 (comma separated) 
  </code></pre>
  
  <p>So that string will be in mysql query to exclude results that already have been shown.
  how can i do that?</p>
  
  <p>Should be with implode? How can i achieve that?</p>