Prova con questo:
Fammi sapere se va,Codice PHP:
$data = strftime("%Y%m%d%H%M%S");
$numero = 003754737; //il tuo numero
$result = $data.$numero;
if (strlen($result) < 20){
$result = $data."00".$numero;
}else{
$tot = strlen($result);
$da_togliere = $tot - 20;
$result = substr($result, $da_togliere);
}
![]()