可能重复: 从字符串中删除最后一个字符
我想删除文本中的最后一个字符..
例如
我的字符串:example text 第二名:example tex
example text
example tex
怎么样?
php string substr
php ×1
string ×1
substr ×1