← All docs

ptr_set()

Writes one machine word through a raw pointer.

ptr_set()

function ptr_set(pointer $pointer, mixed $value): void

Writes one machine word through a raw pointer.

Parameters:

  • $pointer (pointer)
  • $value (mixed)

Returns: void

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

Internals

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