echo 에서 number_format 사용 어떻게 해야.. 정보
echo 에서 number_format 사용 어떻게 해야..- OCPlicense 자기소개 아이디로 검색 회원게시물
- 조회 926
- 댓글 2
본문
$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 으로(천 단위마다 콤마) 나타내고 싶거든요...찾아서 보고 해도 도저히 안되네요.
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 으로(천 단위마다 콤마) 나타내고 싶거든요...찾아서 보고 해도 도저히 안되네요.
댓글 전체

" . number_format ( $list[$i][wr_5] ) . "
이거 말씀하시는 건가요?
이거 말씀하시는 건가요?
감사합니다...^^ 이렇게 하는거였군요.