📜  eliminar ultimo 字符字符串 php 代码示例

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

代码示例1
$mystring = 'number 1, number 2, number 3,';
$myString = substr($myString, 0, -1);
echo $myString;  // 'number 1, number 2, number 3'