📅  最后修改于: 2022-03-11 14:54:35.078000             🧑  作者: Mango
$mystring = 'number 1, number 2, number 3,';
$myString = substr($myString, 0, -1);
echo $myString; // 'number 1, number 2, number 3'