PHP rtrim() May 22, 2012 Pramod T P It strips whitespace from the end of a string Example <?php echo rtrim(“phpcode “); ?> Output phpcode Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...