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

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

WBOY
Release: 2016-06-13 11:13:07
Original
810 people have browsed it

这段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 />  }
Copy after login


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

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

= 赋值
== 比较
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template