source:
pro-violet-viettel/sourcecode/info.php
@
620
Last change on this file since 620 was 620, checked in by dungnv, 10 years ago | |
---|---|
File size: 402 bytes |
Rev | Line | |
---|---|---|
[620] | 1 | <script> |
2 | function 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 | ||
15 | console.log(addCommas(1000000000)); | |
16 | </script> | |
[289] | 17 | <?php |
[620] | 18 | echo md5('123456a'), "<br />"; |
[460] | 19 | echo md5('0988568786violet'); |
[313] | 20 | phpinfo(); |
Note: See TracBrowser
for help on using the repository browser.