sizeof()
function sizeof(mixed $value, int $mode = 0): int
Alias of count().
Parameters:
$value(mixed)$mode(int), default0, optional
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/sizeof.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how sizeof is implemented in the compiler, see the internals page.