Ignore:
Timestamp:
Nov 27, 2014 12:52:23 PM (10 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

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

    r620 r631  
    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>
    171<?php
    18 echo md5('123456a'), "<br />";
    19 echo md5('0988568786violet');
    202phpinfo();
Note: See TracChangeset for help on using the changeset viewer.