|
PHP5中文手册
rtrim(PHP 4, PHP 5) rtrim — Strip whitespace (or other characters) from the end of a string 说明
string rtrim
( string $str
[, string $charlist
] )
This function returns a string with whitespace stripped from the end of str . Without the second parameter, rtrim() will strip these characters:
参数
返回值Returns the modified string. 更新日志
范例
Example#1 Usage example of rtrim()
<?php 上例将输出:
|