Exibir a lista drop-down

random_bytes()

« rand | range »
<?php
$string 
random_bytes (
    
  // int $length
);

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
resultado
$string = 'WO'
$hex = '9c57e74f99'
Exemplos
#1 random_bytes  (5)
Veja também
bin2hex, openssl_random_pseudo_bytes