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

random_bytes()

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

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