fork download
  1. <?php
  2.  
  3. function encryptZip($zip) {
  4. $theSource = Array("8","v","w","M","P","I","N","o","Z","h","g","_","u","W","D","-","b","O","k","a","G","t","U","j","6","7","K","A","r","y","l","5","X","p","n","z","F","4","Y","d","2","9","q","V","s","0",".","e","H","c","x","Q","B","S");
  5. $r = '';
  6. while ($zip>0){
  7. echo "Zip is currently $zip\n";
  8. $num = $zip % 53;
  9. $zip = ($zip - $num) / 53;
  10. $r .= $theSource[$num];
  11. }
  12. return $r;
  13. }
  14.  
  15.  
  16. echo encryptZip(90210);
Success #stdin #stdout 0.01s 24384KB
stdin
Standard input is empty
stdout
Zip is currently 90210
Zip is currently 1702
Zip is currently 32
PNX