PHP rtrim() 函數用于刪除字符串末尾的空格或其他指定字符。
語法: string rtrim(string $string, string $charlist)
參數:
返回值: 返回處理過的字符串。