← All docs

zval_unpack()

Unpacks a PHP zval pointer into an owned elephc Mixed value.

zval_unpack()

function zval_unpack(pointer $zval): mixed

Unpacks a PHP zval pointer into an owned elephc Mixed value.

Parameters:

  • $zval (pointer)

Returns: mixed

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

Internals

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