php 随机数字插入字母

暂无标签

如:659031492876B74

$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$pin = mt_rand(1000000, 9999999).mt_rand(1000000, 9999999).$characters[rand(0, strlen($characters) - 1)];
$string = str_shuffle($pin);