简单教程
提交运行
代码编辑器:
<?php $str = "Hello"; echo "The string: ".$str."<br>"; echo "TRUE - Raw 20 character binary format: ".sha1($str, TRUE)."<br>"; echo "FALSE - 40 character hex number: ".sha1($str)."<br>";
运行结果: