<?php $tests = [ '00.12', '0.12', '00', '0', '0012.12', '00023', ]; foreach ($tests as $test) { echo number_format($test, 2, '.', '') . "\n"; }
You have javascript disabled. You will not be able to edit any code.