string rtrim ( string str [, string trim_chars] ) only trims whitespace from the righthand side of a string. : rtrim « String « PHP






string rtrim ( string str [, string trim_chars] ) only trims whitespace from the righthand side of a string.

 
<?
    $string = rtrim(" testing ");
?>
  
  

Related examples in the same category

1.Cleaning Up a String with trim(), Itrim(), and strip_tags()