<? 
$num=date('YmdHis') ;

$r=sprintf("%05d",rand(1,99999));
//     y m d h i s
$d='2023072818024000013';
echo $num.$r.'<br>';
echo $d;

?>