Home  >  Article  >  Backend Development  >  PHP 中& & 与 || 的差别

PHP 中& & 与 || 的差别

WBOY
WBOYOriginal
2016-06-13 10:59:53651browse

PHP 中& & 与 || 的区别

?

注意: & & 与 || ?的区别:

& ?与 ? | ?的特点:先执行两侧表达式,再判断;

&& ?与 ? || ?的特点:先执行左侧,再判断,需要时再执行右侧表达式。

?

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