mcrypt_list_modes

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_list_modes锟斤拷取锟斤拷支锟街碉拷模式

Warning

This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.

说锟斤拷

mcrypt_list_modes ([ string $lib_dir = ini_get("mcrypt.modes_dir") ] ) : array

锟斤拷取 lib_dir 锟斤拷 锟斤拷锟斤拷锟斤拷锟斤拷支锟街碉拷模式锟斤拷

锟斤拷锟斤拷

lib_dir

指锟斤拷模式锟斤拷锟节碉拷位锟矫★拷 锟斤拷锟轿粗革拷锟斤拷锟斤拷锟绞癸拷锟� php.ini 锟叫碉拷 mcrypt.modes_dir 指示锟斤拷指锟斤拷锟斤拷位锟矫★拷

锟斤拷锟斤拷值

锟斤拷锟斤拷锟斤拷锟斤拷式锟斤拷锟斤拷锟斤拷支锟街碉拷模式锟斤拷

锟斤拷锟斤拷

Example #1 mcrypt_list_modes() 锟斤拷锟斤拷

<?php
    $modes 
mcrypt_list_modes();

    foreach (
$modes as $mode) {
        echo 
"$mode <br />\n";
    }
?>

锟斤拷锟斤拷锟斤拷锟叫筹拷锟斤拷默锟斤拷目录锟斤拷 锟斤拷锟斤拷锟斤拷支锟街碉拷模式锟斤拷 锟斤拷锟斤拷锟� php.ini 锟斤拷未指锟斤拷 mcrypt.modes_dir锟斤拷 锟斤拷使锟斤拷默锟较碉拷 mcrypt 锟斤拷 锟斤拷装目录锟斤拷/usr/local/lib/libmcrypt锟斤拷锟斤拷