← All docs

ptr_write32()

Writes one 32-bit word through a raw pointer.

ptr_write32()

function ptr_write32(pointer $pointer, int $value): void

Writes one 32-bit word through a raw pointer.

Parameters:

  • $pointer (pointer)
  • $value (int)

Returns: void

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable
  • Hidden in strict PHP mode: 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_write32 is implemented in the compiler, see the internals page.