|
rtrimStrip whitespace (or other characters) from the end of a string Description
string rtrim
( string
$str
[, string $character_mask
] )
This function returns a string with whitespace stripped from the
end of Without the second parameter, rtrim will strip these characters:
Parameters
Return ValuesReturns the modified string. Changelog
Examples
Example #1 Usage example of rtrim
<?php The above example will output: string(32) " These are a few words :) ... " string(16) " Example string " string(11) "Hello World" string(30) " These are a few words :) ..." string(26) " These are a few words :)" string(9) "Hello Wor" string(15) " Example string" See Also
|