title: PHP - remove comma from the last loop
body: <p>I have a PHP while LOOP, and I want to remove last comma <code>,</code> from <code>echo '],';</code> if it is last loop</p>
  
  <pre><code>            while($ltr = mysql_fetch_array($lt)){
                  echo '[';
                  echo $ltr['days']. ' ,'. $ltr['name'];
                  echo '],';
              }
  </code></pre>