Display the drop-down list

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);
?>
Result
$string = '&lUj.'
$hex = '266c55e66a2e88ed'
Error : Function mcrypt_create_iv() is deprecated
Examples
#1 mcrypt_create_iv  (8)
See also
bin2hex, random_bytes