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

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

By default (without a $charlist), trim() removes the following whitespace from BOTH the beginning and end of a string:

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

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

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

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

Or use the form:
trim($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 trim() function - Trim beginning and end of string (left and right trim) in PHPPhotoshop - Add to a SelectionWindows 7 - Change the Desktop BackgroundHow To Run a Toshiba System Recovery from Your Laptop or Notebook Hard Drive✔️ Microsoft Word - Add Page Numbers - Page Number Header - Office 365Windows 8 - How to Find Programs Not Shown in Start Area - Like Command Prompt, Regedit.exe etc.How to Download Free Apps on iPad, iPhone, iPod in Apple iOS 11 - Help VideoHow to Remove Shopper ProPhotoshop Tutorial - Easy Text Cutout Effect - With Texture🔥 iOS - How to Move an Icon on an iPad or iPhone from One Screen to AnotherRemove Windows Tempory Files and Internet Temporary Files with CCleaner Free SoftwareWindows 8.1 - Mouse Options - Double Click Speed - Pointer Size - Pointer Speed
Help Video Guru |

PHP trim() function - Trim beginning and end of string (left and right trim) in PHP

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER