Exibir a lista drop-down

mcrypt_create_iv()

« mb_substr_count | mcrypt_decrypt »
<?php
$string 
mcrypt_create_iv (
    
?// int $size
    
?  // [int $source = MCRYPT_DEV_URANDOM]
);

// shows the result in hexadecimal
$hex bin2hex($string);
?>
resultado
$string = 'D5R2'
$hex = '44e6153552d632ed'
Erro : Function mcrypt_create_iv() is deprecated
Exemplos
#1 mcrypt_create_iv  (8)
Veja também
bin2hex, random_bytes