Home  >  Article  >  Backend Development  >  为啥POST过来的sha1加密字符串相等的判断不对呢

为啥POST过来的sha1加密字符串相等的判断不对呢

WBOY
WBOYOriginal
2016-06-13 12:44:041660browse

为什么POST过来的sha1加密字符串相等的判断不对呢。
比如我表单post过来了sha1('1')这个加密后的字符串356a192b7913b04c54574d18c28d46e6395428ab。
然后我if($_POST['s']=='356a192b7913b04c54574d18c28d46e6395428ab')
为什么判断为false?
echo $_POST['s']也是356a192b7913b04c54574d18c28d46e6395428ab啊。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn