← All docs

ptr_sizeof()

Returns the byte size of the named pointer target type.

ptr_sizeof()

function ptr_sizeof(string $type): int

Returns the byte size of the named pointer target type.

Parameters:

  • $type (string)

Returns: int

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

Internals

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