在rtrim() 返回的值,不修改原始值.请以这种方式使用它:
rtrim()
$xcount = rtrim($xcount, ",");
来自rtrim():
此函数返回一个字符串,其中包含从str末尾剥离的空格(或其他字符).