pub fn trim<'a>(s: &'a [u8], characters: &[u8]) -> &'a [u8] ⓘ
PHP trim($string, $characters): strips the bytes of characters (with a..z ranges, see charmask) from both ends. Pass TRIM_CHARACTERS for PHP’s default.
trim($string, $characters)
characters
a..z
charmask
TRIM_CHARACTERS