← All docs

ptr()

Returns a raw pointer to the given variable.

ptr()

function ptr(mixed $value): mixed

Returns a raw pointer to the given variable.

Parameters:

  • $value (mixed)

Returns: mixed

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

Internals

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