php8.5
Home/ Manual/ ffi / ffi/ FFI::typeof

FFI::typeof

PHP function Edit on GitHub ✎

(PHP 7 >= 7.4.0, PHP 8)

Gets the FFI\CType of FFI\CData

Description

FFI::typeof(FFI\CData $ptr): FFI\CType

Gets the FFI\CType object representing the type of the given FFI\CData object.

Parameters

ptr

The handle of the pointer to a C data structure.

Return Values

Returns the FFI\CType object representing the type of the given FFI\CData object.

Source: reference/ffi/ffi/typeof.xml · from the official PHP manual (php/doc-en)