The function that converts the RMB number written in php to the RMB capital. sometimes we need to use a random user name and password in the application, which can greatly improve the security of the application, you can use the mt_rand function or the rand function to generate a random user name and password in PHP. The rand function applies more in the verification code, and the random code of the generated characters generally requires the mt_rand function.
Using PHP to generate random numbers can be applied in many places, such as designing random passwords for programs, simulating dice games, and stone scissors game applications.
The following are two function methods for generating random numbers in PHP:
On the Internet, I saw a very interesting function for converting the php RMB amount to the Chinese capital. The essence of this function is to convert the numbers to the Chinese capital. I tested it. it's very interesting. just enter a number at will, you can print it in uppercase. new friends can give it a try and write a lot of interesting PHP conversion functions. PHP code:
Usage: you can directly pass the number parameter. the following instances are printed in uppercase. Output: tens of thousands of rows, one round, and one round
PHP code