여러문장을 한번에 자동 줄바꿈 하기 입니다.
function string_anl($content, $max)
{
$arry = explode(" ",$content);
$content = "";
for($i=0;$i<count($arry);$i++)
{
if($max < $arry[$i])
{
for($j=0;$j<strlen($arry[$i])/$max;$j++)
{
if(Ord(substr($arry[$i], $j*$max, $j*$max+1 )) & 0x80)
{
$tt = substr($arry[$i],$j*$max,$max-1);
}
else
{
$tt = substr($arry[$i],$j*$max,$max);
}
$str = $str." ".$tt;
}
$arry[$i] = $str;
}
$content = $content.$arry[$i];
}
return $content;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3601 |
느긋한카키쿠키
|
1주 전 | 6 | |
| 3600 |
nature1235
|
11개월 전 | 439 | |
| 3599 |
swallow
|
2년 전 | 1350 | |
| 3598 |
swallow
|
2년 전 | 1195 | |
| 3597 |
swallow
|
2년 전 | 799 | |
| 3596 | 2년 전 | 1419 | ||
| 3595 | 2년 전 | 695 | ||
| 3594 | 2년 전 | 1414 | ||
| 3593 |
|
3년 전 | 1238 | |
| 3592 |
|
3년 전 | 1574 | |
| 3591 |
|
3년 전 | 1489 | |
| 3590 |
|
4년 전 | 1452 | |
| 3589 |
|
4년 전 | 1251 | |
| 3588 |
|
4년 전 | 1225 | |
| 3587 |
|
4년 전 | 1142 | |
| 3586 |
|
4년 전 | 1375 | |
| 3585 |
|
4년 전 | 1294 | |
| 3584 |
|
4년 전 | 1039 | |
| 3583 |
Arm코리아
|
4년 전 | 1135 | |
| 3582 |
|
4년 전 | 1244 | |
| 3581 |
|
4년 전 | 2200 | |
| 3580 |
|
4년 전 | 1272 | |
| 3579 |
|
4년 전 | 1300 | |
| 3578 |
|
4년 전 | 1537 | |
| 3577 | 4년 전 | 1676 | ||
| 3576 |
|
4년 전 | 1667 | |
| 3575 |
|
4년 전 | 1677 | |
| 3574 |
|
4년 전 | 2097 | |
| 3573 |
|
4년 전 | 1549 | |
| 3572 |
|
4년 전 | 1537 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기