source: pro-violet-viettel/sourcecode/info.php @ 628

Last change on this file since 628 was 620, checked in by dungnv, 10 years ago
File size: 402 bytes
Line 
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>
17<?php
18echo md5('123456a'), "<br />";
19echo md5('0988568786violet');
20phpinfo();
Note: See TracBrowser for help on using the repository browser.