OCPlicense

echo 에서 number_format 사용 어떻게 해야..

$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:8pt;'>{$list[$i][comment_cnt]}</span></a>";

echo "<td width='{$td_width}%' valign=bottom style='word-break:break-all;'>";
echo "<table width=100%>";
echo "<tr><td width=100% height=1></td></tr><tr><td style='width:100%;height:120px;border:1px solid #CCCCCC; padding:2px'><table>";
echo "<tr><td align=center width='100' height='120' style='width:100px;height:120px; padding:1px'><div style='width:100px; height:120px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}'>$img</a></div></td>";
echo "<td align=center width=100% height=100%><table width=100% height=100% style=' padding:3px;table-layout:fixed;'><tr><td width=100% height=25 align=left valign=middle>{$board[bo_3]} : <a href='{$list[$i][href]}'><font size=2 color=#378795><B>$subject</B></font></a>{$comment_cnt}      {$board[bo_5]} :  {$list[$i][wr_5]}
</td>


list.skin.php 소스 일부인데요..

{$list[$i][wr_5]} 이부분을 number_format 으로(천 단위마다 콤마) 나타내고 싶거든요...찾아서 보고 해도 도저히 안되네요.
|

댓글 2개

" . number_format ( $list[$i][wr_5] ) . "

이거 말씀하시는 건가요?
감사합니다...^^ 이렇게 하는거였군요.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13년 전 조회 1,569
13년 전 조회 1,600
13년 전 조회 1,120
13년 전 조회 1,615
13년 전 조회 1,675
13년 전 조회 905
13년 전 조회 7,518
13년 전 조회 911
13년 전 조회 961
13년 전 조회 1,021
13년 전 조회 996
13년 전 조회 846
13년 전 조회 1,589
13년 전 조회 982
13년 전 조회 792
13년 전 조회 944
13년 전 조회 1,562
13년 전 조회 1,025
13년 전 조회 1,227
13년 전 조회 807