ドロップダウンリストを表示

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
結果
$string = '@Q'
$hex = '40511e85b6'
#1 random_bytes  (5)
参照
bin2hex, openssl_random_pseudo_bytes