📜  在循环中如何在 php 代码示例中通过逗号添加字符串

📅  最后修改于: 2022-03-11 14:54:25.077000             🧑  作者: Mango

代码示例2
$values = "";

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

echo $values;
//@sujay