title: PHP array values in a sequence
body: <p>Hi i am retrieving values from my database to my web page.
  here is my code</p>
  
  <pre><code>foreach ($rows as $r) { 
      echo $r-&gt;title;
  }
  </code></pre>
  
  <p>Now I want all  my title values to be saved in a single variable separated by commas for example</p>
  
  <pre><code>$new_var = title_1,title_2,title_3;
  </code></pre>
  
  <p>how can i do that??</p>