Home > Backend Development > PHP Tutorial > 关于thinkphp的一点小疑问

关于thinkphp的一点小疑问

WBOY
Release: 2016-06-23 13:30:10
Original
857 people have browsed it

if($game->add($map)){
.......
}是 只要$game->add($map)执行了就 走判断里么  ,不需要这个执行成功么?


回复讨论(解决方案)

if($game->add($map)){
  成功走这里
}else {
  不成功走这里
}

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