Copy code The code is as follows:
$str = 'test';
$cm = md5($str);
$bm = md5($str, true);
$cstr = implode(unpack('H*', $bm));
$bstr = pack('H*', $cm);
echo 'str:'. $str . "
n";
echo 'cm :' . $cm . "
n";
echo ' cstr:' . $cstr . "
n";
echo 'urlencode(bm) :' . urlencode($bm) . "
n";
echo 'urlencode( bstr):' . urlencode($bstr) . "
n";
http://www.bkjia.com/PHPjc/633591.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/633591.htmlTechArticleCopy the code as follows: ?php $str = 'test'; $cm = md5($str); $ bm = md5($str, true); $cstr = implode(unpack('H*', $bm)); $bstr = pack('H*', $cm); echo 'str:'. $str . "br n"; ech...