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 = 'vY' "\0" ''
$hex = '769ae95900'
Exemplos
#1 random_bytes  (5)
Veja também
bin2hex, openssl_random_pseudo_bytes