In today's project, we need to display the number of clicks in the article on the page, which is tens of thousands of requests. Although it is not difficult, it has been a programmer for so long, it is no longer a simple implementation, and it is efficient and fast. Although the built-in function number_format () in PHP can achieve sub-bits, what I want is a ten-thousandth bit.
In today's project, we need to display the number of clicks in the article on the page, which is tens of thousands of requests. Although it is not difficult, it has been a programmer for so long, it is no longer a simple implementation, and it is efficient and fast. Although the built-in function number_format () in PHP can achieve sub-bits, what I want is a ten-thousandth bit.
In today's project, we need to display the number of clicks in the article on the page, which is tens of thousands of requests. Although it is not difficult, it has been a programmer for so long, it is no longer a simple implementation that needs to be considered, and it is efficient and fast,
Although the built-in function number_format () in PHP can implement Sub-bits, what I want is ten-thousandths,
After searching, you can use the following method:
$ Num = 86231; # convert a number into a ten-minute echo $ num> 10000? Sprintf ("%. 1f", $ num/10000): $ num;
Similarly, with this method, you can modify it to implement percentile, kilobytes, and thousandths... Data requirements.