rtrim() 去空格或或其他字符
第二代 > php > 函数
rtrim(): 删除字符串右边的空格或其他预定义字符
$str = "Hello World!\n\n"; echo rtrim($str);
©2013-2023 第二代