显示下拉菜单

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
结果
$string = 'mG`'
$hex = '6d93479360'
示例
#1 random_bytes  (5)
另请参阅
bin2hex, openssl_random_pseudo_bytes