- cut_str : 글 제목, 본문 등의 문자열을 일정 길이 이상에서 가릴 때
echo cut_str($list[$i][wr_content], 120, "...");
- conv_content($content, $html) : $html값을 2로 넘겨주면 $content에서 개행문자를
로 바꾸어주고, 1이면
$list[$i][content] = conv_content($row[wr_content], 0, 'wr_content');
'Dev > php' 카테고리의 다른 글
application/json 포맷으로 angularJS - php script 사이에 데이터 주고받기 (0) | 2014.09.21 |
---|---|
[tip] 빈 객체 만들기 stdClass() (0) | 2014.09.15 |
[php] a href tag에서 url만 추출하고 <a> tag 제거 (0) | 2014.08.11 |
정규식 Regular expression 이용한 url 추출 (0) | 2014.08.06 |
[php] const와 define() (0) | 2014.03.09 |