Ignore:
Timestamp:
Nov 24, 2014 4:27:40 PM (10 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/info.php

    r460 r620  
     1<script>
     2function addCommas(nStr)
     3{
     4   nStr += '';
     5   x = nStr.split('.');
     6   x1 = x[0];
     7   x2 = x.length > 1 ? '.' + x[1] : '';
     8   var rgx = /(\d+)(\d{3})/;
     9   while (rgx.test(x1)) {
     10      x1 = x1.replace(rgx, '$1' + ',' + '$2');
     11   }
     12   return x1 + x2;
     13}
     14
     15console.log(addCommas(1000000000));
     16</script>
    117<?php
    2 echo md5('123456'), "<br />";
     18echo md5('123456a'), "<br />";
    319echo md5('0988568786violet');
    420phpinfo();
Note: See TracChangeset for help on using the changeset viewer.