PHP trim() Function
Syntax : trim(string $string, string $characters)
The Php trim() Function is an inbuilt function which removes whitespaces and also the predefined characters from both sides of a string that is left and right.
The Php trim() Function is an inbuilt function which removes whitespaces and also the predefined characters from both sides of a string that is left and right.
$string specifies the string from which the whitespace and predefined characters from left and right are to be removed
$charlist specifies the characters that are to be removed from the string.
lrim() Function removes whitespaces from left side of a string.
rtrim() Function removes whitespaces from right side of a string.
