<?php
//id_pd
$bytes1 = random_bytes(4);
$bytes2 = random_bytes(2);
$bytes3 = random_bytes(2);
$bytes4 = random_bytes(2);
$bytes5 = random_bytes(6);
$nomor= bin2hex($bytes1) . '-' . bin2hex($bytes2) . '-' . bin2hex($bytes3) . '-' . bin2hex($bytes4) . '-' . bin2hex($bytes5);
echo $nomor;
?>
//id_pd
$bytes1 = random_bytes(4);
$bytes2 = random_bytes(2);
$bytes3 = random_bytes(2);
$bytes4 = random_bytes(2);
$bytes5 = random_bytes(6);
$nomor= bin2hex($bytes1) . '-' . bin2hex($bytes2) . '-' . bin2hex($bytes3) . '-' . bin2hex($bytes4) . '-' . bin2hex($bytes5);
echo $nomor;
?>
Comments
Post a Comment