Formatting To Currency

I am trying to round and add a dollar sign with a td tag added in but I can not get the synatx down. Can someone show me what the proper way to do this would be?

print “

” . round($res->$.PayrollInfo) . “”;

[php]<?php

$url = 'http://payinfo.com/pdetailed-information?’ . http_build_query([
‘sdate’ => ‘01-01-2017’,
‘edate’ => ‘01-02-2017’,
‘emp’ => $res->EmpName
]);

?>

$ <?= round($res->PayrollInfo) ?> [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service