我希望在收据上以数字形式作为单词回显金额。我的代码如下:
<tr>
<td width="77" style="text-align: center; font-weight: bold;">Center</td>
<td width="210" style="text-align: center; font-weight: bold;">Amount</td>
</tr><tr><td width="33" style="text-align: center; font-weight: bold;">1</td>
<td width="132" style="text-align: center; font-weight: bold;">
<?php echo $row[11] ?></td>
<td width="77" style="text-align: center; font-weight: bold;">
<?php echo $row[12] ?></td>
<td width="210" style="text-align: center; font-weight: bold;">
<?php echo $row[3] ?></td></tr></table> <tr>
<td height="32"> <p>Received with thanks Rs.....</p>
<p> </p>
<p> </p>
<p> </p>
</td>
因此,我希望将Amount的值放在"收到并感谢卢比"
嗯PHP
还不支持该(数字到字)逻辑。
利用this
包括这些之后。。。像一样重写代码
<p>Received with thanks Rs. <?php echo convert_number_to_word($row[3]); ?></p>