title: php foreach: put each of the loop result in one variable
body: <p>I think this is probably a very simple but I can get my head around! How can I put each of the loop result in one variable only? for instance,</p>
  
  <pre><code>$employeeAges;
  $employeeAges["Lisa"] = "28";
  $employeeAges["Jack"] = "16";
  $employeeAges["Ryan"] = "35";
  $employeeAges["Rachel"] = "46";
  $employeeAges["Grace"] = "34";
  
  foreach( $employeeAges as $key =&gt; $value){
      $string = $value.',';
  }
  
  echo $string; 
  // result 34,
  // but I want to get - 28,16,35,46,34, - as the result
  </code></pre>
  
  <p>Many thanks,
  Lau</p>