dio-v
5/9/2016 - 1:46 PM

nullen toevoegen aan string/getal

nullen toevoegen aan string/getal

<?php
$num = 4;
$num_padded = sprintf("%02d", $num);
echo $num_padded; // returns 04
?>