This article mainly introduces how to generate a unique number in PHP. in this article, convert the hexadecimal value to 36 to obtain more than 60 million unique numbers that are not repeated, with the number of digits being 10 digits, if you need a
When we want to numbers a large number of data, there is a limit on the number of digits, such as a five-digit license plate number, a ten-digit license number, order serial number, and a short URL, we can use the 36-digit system to calculate
Generate the serial number (compress the 12-bit time value into a combination of 7-8 letters and numbers) php code
/*** Generate the serial number ** to compress the 12-digit time value into a combination of 7-8 letters and numbers. The key point
PHP implementation to generate unique membership card number, PHP implementation of membership card
In the case of not querying the database, each member login will generate a digital letter combination of non-repeating membership card number.
As
When each member logs in and queries the database, a group of numbers or membership card numbers that do not overlap with letters are generated. Next, we will show you a small program, generate a unique membership card number based on php. if you
A product was developed yesterday and requires that a registration code serial number be generated by the general background of the website, which is then generated in the format of 573-225-374-118 and is unique in the database, next I will record
PHP How to generate a 6-bit non-repeating string
Reply content:
PHP How to generate a 6-bit non-repeating string
Study the time stamp, do not repeat this only think of time stamp.
当前时间的md5,截取前6位。理论上不可能重复
In the early days of the
Php generates an excel column serial number code instance
Use php to generate an excel column number.
The Code is as follows:
Public function loop (){
$ Loop = 0;
$ Charnum = 65;
For (; $ loop
$ Quotient = intval ($ loop/26 );
$
The security of PHP applications and PHP applications. The security of PHP applications. the security of PHP applications, whether in development, interview, or technical discussion, requires a deep understanding and understanding. Objective in this
I'm glad to have two functions that are useful to you. The first one is used to generate the serial number. The second one is used to encrypt some strings. modify it a little bit, you can find the effect of some hidden characters such as itb ********
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.