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
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/types/is_countable.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how is_countable is implemented in the compiler, see the internals page.