Originariamente inviato da xnavigator
codice:
function f($n) {
 if ($n<10) {
  return '0'.$n;
 } else 
  return $n;
}
thx