add value to string with an an separate comma

前端 未结 0 717
独厮守ぢ
独厮守ぢ 2021-02-10 19:57

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

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

}         


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