Home > Backend Development > PHP Tutorial > php的感叹号是如何用的?就一句代码,帮小弟我解释下就给分

php的感叹号是如何用的?就一句代码,帮小弟我解释下就给分

WBOY
Release: 2016-06-13 12:42:57
Original
1425 people have browsed it

php的感叹号是怎么用的?就一句代码,帮我解释下就给分

!$this->alias && $this->alias = $this->table;
Copy after login
其中变量类型是
    /* 别名 */<br />
    var $alias = '';<br />
  /* 所映射的数据库表 */<br />
    var $table = '';
Copy after login

这句代码的算术优先级有些不懂,感叹号是not,!$this->alias是个布尔值,$this->alias = $this->table;也是个布尔值,两个布尔值做&&与运算,得出来的结果又没地方存,干什么用?是不是我理解错了?

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