The trim function strips whitespace (or other characters) from the beginning and end of a string.
$text = "\t\tThese are a few words :) ... ";
$trimmed = trim($text);
echo $trimmed;
// These are a few words :) ...
The trim function strips whitespace (or other characters) from the beginning and end of a string.
$text = "\t\tThese are a few words :) ... ";
$trimmed = trim($text);
echo $trimmed;
// These are a few words :) ...