Показать выпадающий список

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
Результат
$string = '    {'
$hex = 'bb09d1ee7b'
Примеры
#1 random_bytes  (5)
См. также
bin2hex, openssl_random_pseudo_bytes