UTF::trim PHP 메소드

trim() 공개 메소드

Strip whitespaces from the beginning and end of a string
public trim ( $str ) : string
$str string
리턴 string
    function trim($str)
    {
        return preg_replace('/^[\\pZ\\pC]+|[\\pZ\\pC]+$/u', '', $str);
    }