$holder = ''; foreach($fields as $key){ $holder .= $key.', '; } echo $holder;
我有上面的代码,它输出"a,b,c,"我想在c之后删除逗号.我试过substr而且它不起作用.任何帮助?
php
php ×1