您如何在 PHP 中表示“未定义”的概念?
SQL 有“NULL
”,Python 有“None
”,PHP 中的等价物是什么?
[更新]
感谢大家进行富有启发性的讨论(cHao,有没有 写回复而不是评论我会选择你的)。
最佳答案
PHP 有 NULL也是
取自文档
The special NULL value represents a variable with no value. NULL is the only possible value of type NULL.
A variable is considered to be null if:
it has been assigned the constant NULL.
it has not been set to any value yet.
it has been unset().
关于php - Python 的 None 单例在 PHP 中的等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9177542/