← All docs

ptr_is_null()

Returns true if the pointer is null.

ptr_is_null()

function ptr_is_null(pointer $pointer): bool

Returns true if the pointer is null.

Parameters:

  • $pointer (pointer)

Returns: bool

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

Internals

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