Show Output
Strip Space Tab and Newline from Both Ends of a String in PHP
Before:"; echo "
$str
"; echo "
After:
"; echo "
$trimmed_str
"; ?>
Note:
Newline character inside the string won't be removed.