Mal abgesehn davon, dass mit mit Komma das garnicht formatieren kann:
Probiere es aus ...
PHP-Code:
<?php
error_reporting(E_ALL);
echo number_format( '19,8' , 2).'
';
echo sprintf( '%.2lf', '19,8' ).'
';
echo number_format( 19.8 , 2).'
';
echo sprintf( '%.2lf', 19.8 ).'
';
?>
Kommentar