AgerNic.com
Start write and run your php code online
HOME Editor | PHP Exemples | PHP Functions |
WEB TEMPLATES | EXAMPLES
PHP Tutorial
PHP rtrim() function, run and write PHP code.

PHP rtrim() function - online editor.

rtrim — Strip whitespace or other characters from the end of a string.
rtrim() This function returns a string with whitespace or other characters stripped from the end of str.

Syntax:
rtrim(string,charlist);

Example 1 Usage of ltrim() function:

 <?php 
$e_str = "Have a nice day! ";
$e_str1 = rtrim($e_str);
echo $e_str1;
echo "<br>";
echo rtrim($e_str1, "ay!");
?>


Tags:
PHP rtrim() function 22

PHP rtrim() function

PHP Functons
PHP count() Function

PHP define() function

PHP empty() Function

PHP explode() function

PHP html_entity_decode() function

PHP htmlentities() function

PHP htmlspecialchars_decode() function

PHP htmlspecialchars() function

PHP implode() function

PHP isset() Function

PHP lcfirst() function

PHP ltrim() function

PHP md5() function

PHP print() function

PHP printf() function

PHP rtrim() function

PHP similar_text() function

PHP str_repeat() function

PHP str_replace() function

PHP str_split() function

PHP strcmp() function

PHP strip_tags() function

PHP strlen online function

PHP strrchr() Function

PHP strstr() function

PHP strtolower() function

PHP strtoupper() function

PHP substr() function

PHP trim() function

PHP ucfirst() function