Dropdown-Liste anzeigen

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
Ergebnis
$string = ' \\'
$hex = '170bfa9e5c'
Beispiele
#1 random_bytes  (5)
siehe auch
bin2hex, openssl_random_pseudo_bytes