PHP & Others

PHP BOM 제거, 공백제거

페이지 정보

본문

# BOM 제거

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


# 공백 제거

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

관련자료

등록된 댓글이 없습니다.
Today's proverb
있을 때, 남에게 베풀어라. 그러면 없을 때 다시 올라올 수 있을 것이다.