Php changes the number of words, for example, 10000 to 10 thousand.

Source: Internet
Author: User
Php changes the number to 10000 for example. when the value is greater than or equal to 10 thousand, the output value is 10000 & nbsp; less than 10000 normal output 15000 output 15 thousand output 100000 how to write share php change number for example 0.1 million to 10000
When the value is greater than or equal to 10000, the output value is 10 thousand less than 10000.
15000 output 15 thousand
100000 output 0.1 million

How to Write

Share:


------ Solution --------------------
USD I = 15000;
Echo $ I >=10000? $ I/10000. 'wan': $ I;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.