Code Snippets Php

$test = 15;
printf("%03d", $test);
printf("%06d", $test);
?>