I get Warning: number_format() expects parameter 1 to be double errorin my code
$tbl->addRow();
$tbl->addCell($name);
$tbl->addCell('$' . number_format(doubleval($price), 2,',', ' ') );
I know that the price of $ value is a value of 15.00, which is a number. How can this be fixed?
source
share