22 if($charlist === FALSE)
return ltrim($str);
25 $charlist = preg_replace(
'!([\\\\\\-\\]\\[/^])!',
'\\\${1}',$charlist);
27 return preg_replace(
'/^['.$charlist.
']+/u',
'',$str);
44 if($charlist === FALSE)
return rtrim($str);
47 $charlist = preg_replace(
'!([\\\\\\-\\]\\[/^])!',
'\\\${1}',$charlist);
49 return preg_replace(
'/['.$charlist.
']+$/u',
'',$str);
66 if($charlist === FALSE)
return trim($str);