답변 2개
채택된 답변
+20 포인트
10년 전
str_replace 를 이용해서 제거하시든 혹은 공백처리로 해주시면 되겟네요
$content = str_replace(" ","",$list[$i]["content"])
또는
$content = str_replace(" "," ",$list[$i]["content"])
이런식으로 하시면 되겠네요
$content 와 $list[$i]["content"] 는 정확하지 않을수 있으니 실제 반환되는 내용변수가 어떻게 되는지
확인하시고 수정하세요
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
10년 전
$line = str_replace("\xC2\xA0", " ", $line);
http://stackoverflow.com/questions/16320089/parsing-nbsp-characters-as-spaces">http://stackoverflow.com/questions/16320089/parsing-nbsp-characters-as-spaces
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인