位置: 编程技术 - 正文
推荐整理分享PHP字符串函数md5_file()的用法(php 字符串函数),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:php字符串编码,在php中,字符串有哪些表示形式,在php中,字符串有哪些表示形式,php字符串的三种定义方式,php字符串函数有哪些,php字符串的三种定义方式,php字符串编码,php字符串的三种定义方式,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4 >= 4.2.0, PHP 5)
md5_file — 计算指定文件的 MD5 散列值
说明 string md5_file ( string $filename [, bool $raw_output = false ] )使用 »RSA 数据安全公司的 MD5 报文算法计算 filename 文件的 MD5 散列值并返回。该散列值为 字符的十六进制数字。
参数filename
文件名
raw_output如果被设置为 TRUE,那么报文摘要将以原始的 位二进制格式返回。
返回值成功返回字符串,否则返回 FALSE。
更新日志版本 说明 5.1.0 函数改用流 API。这意味着能够配合封装器使用该函数,比如 md5_file( 5.0.0 新增 raw_output 参数。
范例
Example #1 md5_file() 使用范例
<?php$file='php-5.3.0alpha2-Win-VC9-x.zip';echo'MD5filehashof'.$file.':'.md5_file($file);?> 参见md5() - 计算字符串的 MD5 散列值 sha1_file() - 计算文件的 sha1 散列值 crc() - 计算一个字符串的 crc 多项式
PHP字符串函数ltrim()的用法 ltrim(PHP4,PHP5)ltrim删除字符串开头的空白字符(或其他字符)说明stringltrim(string$str[,string$charlist])删除字符串开头的空白字符(或其他字符)参数str输入的
PHP字符串函数localeconv()的用法 localeconv(PHP4=4.0.5,PHP5)localeconvGetnumericformattinginformation说明arraylocaleconv(void)Returnsanassociativearraycontaininglocalizednumericandmonetaryformattinginformation.返回值localeconv()
PHP字符串函数htmlentities()的用法 htmlentities(PHP4,PHP5)htmlentitiesConvertallapplicablecharacterstoHTMLentities说明stringhtmlentities(string$string[,int$flags=ENT_COMPAT|ENT_HTML[,string$encoding=ini_get(default_charset)[,bool$
标签: php 字符串函数
本文链接地址:https://www.jiuchutong.com/biancheng/278858.html 转载请保留说明!友情链接: 武汉网站建设