Home  >  Article  >  Backend Development  >  Generate card number php code_PHP tutorial

Generate card number php code_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:52:34803browse

Copy code The code is as follows:

$a=1; //Start
$b= 2; //End                                                                 a_c=$in['hdcount']=50; //How many cards are generated?
$asasd="a"; //Card number prefix 
if ($a_c>$c) //If the total generated is less than generated There are many
{
$a_c=$b;
}else{
{ 
 exit("The start must be smaller than the end"); 
} 
for ($ca=$a;$ca<=$a_c;$ca++) 
{ 
 $abc= $ab-(strlen($a));                                                                                                                  > echo "
";
if (strlen($ca)==$ab)
{
break;
                                                                                                  .$ca."
";                                                                >




http://www.bkjia.com/PHPjc/318898.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/318898.html

TechArticle

Copy the code as follows: ?php $a=1;//Start$b=2;//End$ c=$b-$a;//Statistics on how many pictures can be generated in total$ab=$IN['Number']=4;//How many numbers$a_c=$in['hdcount']=50;//Generate How many $asas...




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn