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);