Javascript 如何获得文字量?

Javascript 如何获得文字量?,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,我正在寻找一个数字形式的金额作为回执上的文字。 我的代码如下所示: <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 widt

我正在寻找一个数字形式的金额作为回执上的文字。 我的代码如下所示:

<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>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</td>
因此,我希望将Amount中的值放在Received中,并附上感谢Rs。

好吧,PHP还不支持数字到单词的逻辑

利用

在包含这些之后…像这样重写代码

<p>Received with thanks Rs. <?php echo convert_number_to_word($row[3]); ?></p>

如1=1,2=2等?是的,我想用文字回应这里的答案可能会有所帮助:在你发帖之前,搜索一下,看看这个问题是否已经被问过了。大多数情况下都是这样。将您的金额值传递到那里。。我的意思是把你的$row[3]传递到那里,非常感谢它的工作