금액을 콤마로 표시하기 정보
금액을 콤마로 표시하기본문
리스트에서 금액을 콤마로 표시하고 있습니다.
echo <<<HEREDOC
<td width="{$td_width}%" valign="top" align="center">
<table border="0" cellpadding="2" cellspacing="0">
<td width="170" height="22" align=center><strong><font color="#FF6600"> {$list[$i][wr_3]} 원</font></stong></td>
</tr>
</table>
<br>
</td>
HEREDOC;
}
<td width="{$td_width}%" valign="top" align="center">
<table border="0" cellpadding="2" cellspacing="0">
<td width="170" height="22" align=center><strong><font color="#FF6600"> {$list[$i][wr_3]} 원</font></stong></td>
</tr>
</table>
<br>
</td>
HEREDOC;
}
여기 팁대로 하는데 안되네요.
<font color="red">{number_format($list[$i][wr_3])}</font>원
고수님들 도움 부탁드립니다!
댓글 전체

$wr_3 = number_format($list[$i]['wr_3']);
echo <<<HEREDOC
{$wr_3}
echo <<<HEREDOC
{$wr_3}
감사합니다~ 해결되였습니다^^