← All docs

empty()

Determines whether a variable is considered empty.

empty()

function empty(mixed $value): bool

Determines whether a variable is considered empty.

Parameters:

  • $value (mixed)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how empty is implemented in the compiler, see the internals page.