I get a float value from a xml file and I assign this value to a variable
$value = 13.80;
When I do number_format($value,2,".",","); I get NULL. Any ideas why?
When I try echo empty($value) ? '0' : $value; I get 13.80 showing itīs not null/empty.
I am using PHP 5.3.13


Reply With Quote

Bookmarks