PHP & Others

PHP BOM 제거, 공백제거

컨텐츠 정보

본문

# BOM 제거

$string = preg_replace('/[\x00-\x1F\x80-\xFF]/','',$string) 


# 공백 제거

$string = preg_replace('/\s+/', '', $string);

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
용서야말로 사랑의 지고한 모습이다. (레인홀더 니버)