📜  php 检查变量是真还是假 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:45.226000             🧑  作者: Mango

代码示例1
Testing $var == true is the same than just testing $var.

You can read this SO question on comparison operator. You can also read PHP manual on this topic.

Note: a variable does not return true. It is true, or it evaluates to true. However, a function returns true.