← All docs

sizeof()

Alias of count().

sizeof()

function sizeof(mixed $value, int $mode = 0): int

Alias of count().

Parameters:

  • $value (mixed)
  • $mode (int), default 0, optional

Returns: int

Availability

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

Internals

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