复制代码 代码如下:
<?php
$str = 'test';
$cm = md5($str);
$bm = md5($str, true);
$cstr = implode(unpack('h*', $bm));
$bstr = pack('h*', $cm);
echo 'str:'. $str . "<br >n";
echo 'cm :' . $cm . "<br >n";
echo 'cstr:' . $cstr . "<br >n";
echo 'urlencode(bm) :' . urlencode($bm) . "<br >n";
echo 'urlencode(bstr):' . urlencode($bstr) . "<br >n";
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!