函数:mcrypt_get_cipher_name()


mcrypt_get_cipher_name

取得编码方式的名称。

语法: string mcrypt_get_cipher_name(int cipher);

返回值: 字符串

函数种类: 编码处理

内容说明

本函数用来取得编码方式的名称。返回值为名称字符串,若没有指定的编码方式则返回 false 或输入的名称。

使用范例

下例会输出 TripleDES 字符串。

<?php
$cipher 
MCRYPT_TripleDES;
print 
mcrypt_get_cipher_name($cipher);
?>



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序