- var_dump: documentation ( source)
- sprintf: documentation ( source)
<?php
$summ = 200.01;
var_dump([
sprintf('%.2f', $summ),
sprintf('%02.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
sprintf('%2.2f', $summ),
]);