Home >Backend Development >PHP Tutorial >这段IF语句有什么有关问题吗

这段IF语句有什么有关问题吗

WBOY
WBOYOriginal
2016-06-13 11:13:07801browse

这段IF语句有什么问题吗?

本帖最后由 YouJiWangKeFu 于 2013-01-25 12:46:51 编辑
  if($cutt = 3){<br />$urll = "http://www.baidu.com";<br />  }<br />   if($cutt = 4){<br />$urll = "http://www.qq.com";<br />  }


怎么cutt值=3 输出的还是 http://www.qq.com

------解决方案--------------------
if($cutt == 3)

= 赋值
== 比较
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