foreach(range(1,1000) as $tt){
foreach(range(1,16) as $t){
$string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
$no = rand(1, 35);
$card[] = substr($string, $no, 1);
}
$cardno[] = trim(implode("",$card));
unset($card);
}
$result = array_unique($cardno);
$f = fopen("data.txt","w");
foreach($result as $k=> $v ) {
$data = "$v\r\n";
fwrite($f,$data);
}
fclose($f);
echo "Data.txt is created with 1000 unique 16 digit no <br>";
?>