Posted By

sekihin on 08/11/09


Tagged

number


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


文字列を0に編集


 / Published in: PHP
 

  1. // *********************************************************
  2. // 文字列を0に編集
  3. // 2008/07/28 追加 By ZQ.Li
  4. // *********************************************************
  5. function fixnumber($s,$l=8){
  6. return sprintf("%0$l.0f", $s);
  7. }

Report this snippet  

You need to login to post a comment.