When I do:
$value = 89.00795 $value = sprintf("%.2f", $value); echo "The Value is: $value<br>\n";
...
The output is
The Value is: //.//
This is under PHP4.2.1 on SunOS
Anyone seen this before?
Could it be the missing semicolon after 89.00795?
$value = 89.00795; $value = sprintf("%.2f", $value); echo "The Value is: $value<br>\n";
No, this phenomenon is happening throughout the entire site after tranfer to a new server - this is not a coding error. All sprintf() statements output //.//
Thanks for trying though