fork(2) download
  1. function num_to_sxg($n) {
  2. $s = "";
  3. $m = "0123456789ABCDEFGHJKLMNPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz";
  4. if ($n===undefined || $n===0) { return 0; }
  5. while ($n>0) {
  6. $d = $n % 60;
  7. $s = strcat($m[$d],$s);
  8. $n = ($n-$d)/60;
  9. }
  10. return $s;
  11. }
  12.  
  13. function strcat($a, $b) {
  14. return $a + $b;
  15. }
  16.  
  17. print(num_to_sxg(314159265));
Success #stdin #stdout 0.01s 29600KB
stdin
Standard input is empty
stdout
QESTk