Posted By

jtkendall on 09/03/08


Tagged

number pin identification personal ATM PINS


Versions (?)

4 digit PIN's


 / Published in: PHP
 

  1. <?
  2. $i = 0;
  3. $pins = '';
  4. while($i < 10000)
  5. {
  6. if(strlen($i) == 1) $add = '000';
  7. if(strlen($i) == 2) $add = '00';
  8. if(strlen($i) == 3) $add = '0';
  9. if(strlen($i) == 4) $add = '';
  10. $pins .= ', '.$add.$i;
  11. $i++;
  12. }
  13. echo ltrim($pins, ', ');
  14. ?>

Report this snippet  

You need to login to post a comment.