Mostrar lista de opciones

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 = '`QTc'
$hex = '60e9511554861c63'
Error : Function mcrypt_create_iv() is deprecated
Ejemplos
#1 mcrypt_create_iv  (8)
Ver también
bin2hex, random_bytes