PHP rtrim() function - Trim end of string (right trim) in PHP @helpvideoguru
PHP rtrim() function - Trim end of string (right trim) in PHP  @helpvideoguru
Uploaded February 2013 | Updated November 2026, 5 hours ago
In this video I will show you the PHP rtrim() function

==============

By default (without a $charlist), rtrim() removes the following whitespace from the right side of a string:

' ' spaces
'\t' tabs
'\n' new lines
'\r' carriage returns
'\0' NUL-bytes

============

Use the form:
rtrim($your_string)
for the default behaviour

============

Or use the form:
rtrim($your_string, $your_charlist)
to specify which characters you want to remove

============

You can specify each character individually ...

============

... or you can use ranges within your character set using the a..z double dot format.

This sample is functionally identical to the previous one.

============

Check out the code on this page for example usage!

============

If you found this video helpful, please subscribe to HelpVideoGuru on YouTube
PHP rtrim() function - Trim end of string (right trim) in PHPWindows 7 - Hide Desktop Icons - Show Desktop IconsWordpress - Make a Website, not a Blog - Create New Pages, add Videos, Add Logo to Header and MORERefresh Firefox - How to Restore Firefox to Factory Settings - Revert and Recover Mozilla FirefoxSetting Up a Basic Website in Dreamweaver - Video 03Windows 7 - How to Show File Extensions - Turn on File Extensions - View ExtensionsHow to Connect to WiFi Wireless with an iPad, iPhone, iPod on Apple iOS 11 - VideoStop Your Screen and Computer from Turning off after 15, 20 or However Many MinutesZoom Features in Microsoft Word 2010 - One Page (Full Page), Multiple Pages,  Page Width, Etc.Emailing Photos from Picasa via Windows Live Mail as True Attachments - Not Photo Album or SkyDriveDreamweaver CC 2015 - How to Make a Template from an Existing Web PageAdobe Photoshop - How to Erase a Background, Magic Wand, Quick Selection Tool, Pen Tool, Selections
Help Video Guru |

PHP rtrim() function - Trim end of string (right trim) in PHP

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER