NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle+0 views

What does empty() return for an empty string and zero?

Practice

Asked at

AI answer

empty() returns true for both an empty string "" and the number 0. The string '0' is also considered empty. For example: empty("") === true, empty(0) === true.