显示下拉菜单

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);
?>
结果
$string = '|B"Q'
$hex = '7ca897ee4222be51'
错误 : Function mcrypt_create_iv() is deprecated
示例
#1 mcrypt_create_iv  (8)
另请参阅
bin2hex, random_bytes