Açılır listeyi görüntüleyin

random_bytes()

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

// shows the result in hexadecimal
if ($string) {
    
$hex bin2hex($string);
}
?>
Sonuç
$string = 'jx'
$hex = 'e27f6aac78'
Örnekler
#1 random_bytes  (5)
Ayrıca bkz
bin2hex, openssl_random_pseudo_bytes