Display the drop-down list

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
Result
$string = '
['
$hex = '0e0a0c5b8d'
Examples
#1 random_bytes  (5)
See also
bin2hex, openssl_random_pseudo_bytes