← All docs

zval_type()

Returns the PHP zval type byte for a zval pointer.

zval_type()

function zval_type(pointer $zval): int

Returns the PHP zval type byte for a zval pointer.

Parameters:

  • $zval (pointer)

Returns: int

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

Internals

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