PHP & Others

PHP BOM 제거, 공백제거

페이지 정보

본문

# BOM 제거

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


# 공백 제거

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

관련자료

등록된 댓글이 없습니다.
Today's proverb
친구를 사귐에 있어 실패하는 이유는 남을 칭찬하는 데 인색하기 때문이다.