← All docs

is_countable()

Verifies that the contents of a variable is a countable value.

is_countable()

function is_countable(mixed $value): bool

Verifies that the contents of a variable is a countable value.

Parameters:

  • $value (mixed)

Returns: bool

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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