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

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

WBOY
WBOYOriginal
2016-06-13 11:28:12923browse

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

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

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

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