php - Python 的 None 单例在 PHP 中的等价物是什么?

标签 php python syntax

您如何在 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/

相关文章:

php - cp1250_general_ci 转 UTF-8 帮助

python - 无法访问请求中 g 对象的属性集

mysql - SQL选择基于多行键的两部分组合键的一半?

c++ - "else if"是单个关键字吗?

php - 通过按 Enter 键提交表单后 Laravel 错误

php - 无限重定向循环 - 重写 URL

php - 带有 ios instagram 登录的 https PHP/MySql 网络服务

python - 基于两个 Dataframe 列构建计数字典

python - 如何增加 facebook Insights api 光标的限制

c++ - "Automatic"C++ 中的类代理