- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
function code_generator(){
$chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
$code_name='';
for ($i=0;$i<5;$i++){
$code_name.=substr($chars, rand(1, strlen($chars))-1,1);
}
return $code_name;
}
function generate (){
$code_name=code_generator().'-'.code_generator().'-'.code_generator().'-'.code_generator().'-'.code_generator();
return $code_name;
}
bormand 09.05.2014 16:01 # +1
brutushafens 09.05.2014 16:11 # −2