add value to string with an an separate comma

前端 未结 0 1839
温柔的废话
温柔的废话 2021-02-10 20:24

I want to add an value to string 14 times with a separate comma ",".

$result = 0;
for($i = 0; $i <= 14; $i++) {
    $result += $i . ",";

}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题