Number_Format () s'attend à ce que le paramètre 1 soit flotté, chaîne donnée

$tot_tapas = float($number_of_persons) * float($tapas);
$tot_tapas = number_format((float)$tot_tapas , 2, '.', '');
Shadow