Help for this page

Select Code to Download


  1. or download this
    $string = ('0' x ($wanted - $current)) . $string;
    
  2. or download this
    sprintf "%0${len}d", $number;