deux chiffres après la virgule en php / number_format()

Voici un petit code tout simple en PHP vous permettant d’afficher deux chiffres après la virgule dans vos calcul.
$mavariable =0.3;
$mavariable = number_format($mavariable,2,’,',’ ‘);
echo $mavariable affiche 0.30.