Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

in loop how add string by comma in php

$values = "";

foreach ($stuffs as $stuff) {
    $values != "" && $values .= ",";
    $values .= $stuff;
 }

echo $values;
//@sujay
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #add #string #comma #php
ADD COMMENT
Topic
Name
4+5 =