PHP rtrim() function
In this article, We will explain to you PHP rtrim() function with example.
PHP rtrim() function
The rtrim() is a built-in function of PHP. which is used to remove the whitespace from the right side of the string. so you can see our PHP String Function example.
Syntax
rtrim(string,charlist);
Paramerter Option
string | This is Required Paramerter. |
charlist | This is Optional Paramerter. Specifies which characters to remove |
Example
<?PHP echo rtrim("This is My website "); ?>
Output
This is My website