JString rtrim is a PHP function that removes whitespace or other characters from the end (right side) of a string.
Example 1: $string = "Hello "; $newString = JString::rtrim($string); // $newString is now "Hello"
Example 2: $string = "Hello World!"; $newString = JString::rtrim($string, "!"); // $newString is now "Hello World"
This function is part of the Joomla Platform, a package library used for developing web applications.
PHP JString::rtrim - 28 examples found. These are the top rated real world PHP examples of JString::rtrim extracted from open source projects. You can rate examples to help us improve the quality of examples.