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

PHP 中& & 与 || 的差别

WBOY
Release: 2016-06-13 10:59:53
Original
700 people have browsed it

PHP 中& & 与 || 的区别

?

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

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

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

?

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