Show Output
Strip Specific Characters from Both Ends of a String in PHP
Before:"; echo "
$str
"; echo "
After:
"; echo "
$trimmed_str
"; ?>
Note:
Tab character before the "Hello World!" won't be removed.