Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
trim « String « PHP
PHP
String
trim
1.
Checking the length of a trimmed string
2.
Combining trim() and strlen()
3.
string trim ( string str [, string trim_chars] ) strips spaces, new lines, and tabs
4.
trim() function removes all whitespace from both sides of string