← All docs

ptr_null()

Returns a null raw pointer.

ptr_null()

function ptr_null(): pointer

Returns a null raw pointer.

Parameters: none.

Returns: pointer

Availability

  • Compiled (AOT): supported by the Elephc code generator.
  • eval() (magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/raw_memory/ptr_null.rs).
  • Strict PHP mode: hidden - this builtin is an elephc extension with no PHP equivalent, so programs compiled with --strict-php treat the name as nonexistent, in compiled code and inside eval’d code.

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

Internals

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