최신글 제목에 특수문자 없애기 채택완료
</strong><span style="font-size: 14.6667px;"><?php echo cut_str(strip_tags($list[$i]['subject']), 34,'…'); ?></span><strong style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px;">
cut_str로 제목글자 자르기함수를 써놨는데 여기에 추가적으로 특수문자들은 안나오게 처리하려고합니다
!!!!!!!!!!!!!!!!!!!!!!
답변 3개
https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_function&wr_id=299307">https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_function&wr_id=299307
댓글을 작성하려면 로그인이 필요합니다.
</strong><span style="font-size: 14.6667px;"><?php </span></p><p style="font-size: 14.6667px;"><span style="white-space: pre;"> </span>$business_title = $list[$i]['subject']; </p><p style="font-size: 14.6667px;"><span style="white-space: pre;"> </span>$business_title = str_replace(array("!","@","#","$","※"), "", $business_title); ?></p><p><span style="font-size: 14.6667px; white-space: pre;"> </span><span style="font-size: 14.6667px;"><?php echo cut_str(strip_tags($business_title), 34,'…'); ?></span><strong style="color: rgb(127, 127, 127); font-family: Arial, 돋움, Dotum; font-size: 12px;">
이렇게 처리하니 잘되네요 대신 array 노가다를 좀..
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인