$uuid = str_replace(".","",uniqid(mt_rand(100000,999999),true)); //基于当前时间微妙数,与mt_rand、uniqid第二个参数设置为true[加盐]混用减少碰撞几率

echo $uuid;