我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

我有一个FPDF,我想使用money_format

I created have the following and if I echo $CaRate I get the expected value but the pdf isn't generating when I put it in the cell.

setlocale(LC_MONETARY, 'en_US');
$CaRate = money_format('%(#5n', $data[0]['data']['CarrierRate']) . "
";

$pdf->Cell(30,8, $CaRate ,0,0,'L');
$pdf->Cell(22,6,sprintf('%.2f',$BAmt),'B',0,'R',0);

detail: https://www.experts-exchange.com/questions/24696443/I-need-to-know-how-to-format-currency-using-PHP-and-the-FPDF-library.html

近期文章

  • Php PDO错误的行数
  • 在PHP中使用模板系统来获取doc类型
  • heroku中的PHPExcel插件
  • PHP:如何从数组中删除重复项[关闭]
  • PHP - 尝试并捕获块(异常)处理
  • 如何通过有效的用户名和密码访问直接受限页面?
  • 如何使用ss3 Gallery模块创建文件夹
  • 使用具有不同AJAX源的DataTable,即UWA.Data.getJson
  • Apache RewriteMap无法正常工作
  • 经度和纬度的arraylists在php中传递它们并将它们插入mysql,怎么样?
  • 用jquery ajax更新mysql
  • WP3手册摘录未显示
  • 如何从表单中获取多个数据?
  • 如何在joomla 2.5模块中使用AJAX?
  • Doctrine2条件属性覆盖
  • 使用Cookie提交PHP后保留表单值
  • PHP警告:json_encode():无效的UTF-8序列
  • 事务错误后也会保存数据
  • 在Doctrine 2中设置列别名时出错
  • 在页面上加载用户ip并存储在数据库中?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华