← All docs

zval_pack()

Packs an elephc runtime value into a heap-allocated PHP zval pointer.

zval_pack()

function zval_pack(mixed $value): pointer

Packs an elephc runtime value into a heap-allocated PHP zval pointer.

Parameters:

  • $value (mixed)

Returns: pointer

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

Internals

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