Removes $charcount characters from the right (end) of a string.
Parameters
string
$str
integer
$charcount
Returns
boolean|string
trim_element()
trim_element( $value, $key)
trim_element() removes leading and trailing spaces from a string. In conjunction
with the array_walk() function, it removes spaces from each element of an array.