Home  >  Article  >  Backend Development  >  php新手求教,该如何处理

php新手求教,该如何处理

WBOY
WBOYOriginal
2016-06-13 10:18:42779browse

php新手求教
if(strcmp($_POST['cmd'],$bnlanglog_clear_all_capacity_log)==0)
这句话什么意思 ?
我知道$bnlanglog_clear_all_capacity_log是一个变量,strcmp($_POST['cmd']这个东西不懂

------解决方案--------------------
比较post过来的变量和$bnlanglog_clear_all_capacity_log变量
strcmp是二进制字符串比较函数
二者相等返回0

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