>>606

sprintfと言う便利すぎる関数がある。

$a = sprintf ( "%05d", "1" );