(PHP 4, PHP 5, PHP 7)
md5 — 锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷 MD5 散锟斤拷值
It is not recommended to use this function to secure passwords, due to the fast nature of this hashing algorithm. See the Password Hashing FAQ for details and best practices.
$str
[, bool $raw_output
= FALSE
] ) : string
使锟斤拷 » RSA 锟斤拷锟捷帮拷全锟斤拷司锟斤拷 MD5 锟斤拷锟斤拷锟姐法锟斤拷锟斤拷 str
锟斤拷 MD5 散锟斤拷值锟斤拷
str
原始锟街凤拷锟斤拷锟斤拷
raw_output
锟斤拷锟斤拷锟窖★拷锟� raw_output
锟斤拷锟斤拷锟斤拷为 TRUE
锟斤拷锟斤拷么 MD5 锟斤拷锟斤拷摘要锟斤拷锟斤拷16锟街节筹拷锟饺碉拷原始锟斤拷锟斤拷锟狡革拷式锟斤拷锟截★拷
锟斤拷 32 锟街凤拷十锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷式锟斤拷锟斤拷散锟斤拷值锟斤拷
Example #1 md5() 锟斤拷锟斤拷
<?php
$str = 'apple';
if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') {
echo "Would you like a green or red apple?";
}
?>