← All docs

ptr_read32()

Reads one unsigned 32-bit word through a raw pointer and returns it as an integer.

ptr_read32()

function ptr_read32(pointer $pointer): int

Reads one unsigned 32-bit word through a raw pointer and returns it as an integer.

Parameters:

  • $pointer (pointer)

Returns: int

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_read32 is implemented in the compiler, see the internals page.