<?php
/**
 * Created by PhpStorm.
 */

$str = '虾米大王需要加密的字符串!';
$str_md5 = md5($str);
echo "<p>原字符串:$str </p>";
echo "<p>md5加密后的字符串:$str_md5 </p>";